traggo/server

Access to Docker Container /bin/bash

jasonbillebault opened this issue · 4 comments

Have you read the documentation?

  • [ x ] Yes, but it does not include related information regarding my question.
  • Yes, but the steps described in the documentation do not work on my machine.
  • Yes, but I am having difficulty understanding it and want clarification.

You are setting up traggo in

  • [ x ] Docker
  • Linux native platform
  • Windows native platform

Describe your problem

I'm not familiar with Docker and it's a great opportunity to learn it by installing your application on a docker.

I ran a docker container but I want to control Backup and Restoration of config changes. I would like to know how to access to the content in SSH in order to understand the content ?

I saw a lot of Google answers about running this command :

docker exec -it *id* /bin/bash
without success, i tried also /bin/sh

Is that impossible for your container or is there something I miss ?

Any errors, logs, or other information that might help us identify your problem

Ex: docker-compose.yml, nginx.conf, browser requests, etc.

The docker image uses scratch as base image, so only the traggo binary is available there

FROM scratch
WORKDIR /opt/traggo
ADD traggo /opt/traggo
EXPOSE 3030
ENTRYPOINT ["./traggo"]

Even if you can see some website recommending it, you (usually) should not use docker exec bash.

Docker containers are ephemeral. In your case, you want to retrieve files in order to perform backup. Instead on doing backup within Traggo container, you should retrieve your files using the volume volume (-v if using docker in CLI, or the volumes section in your docker-compose.yml file). They should be readable from your host, and (if needed) from another container if configured with a shared volume.

c-nv-s commented

are there any new releases planned for traggo soon? just curious.

@c-nv-s depends if there is something that can be released.