This page contains some common commands you may need to use with Docker and Freedmr. All of these commands should be run from /etc/freedmr. Where the container name "freedmr" has been used, you can replace this with any other container name.
## Create and start containers
cd /etc/freedmr
docker-compose up -d
The -d flag stands for Daemon. If you want to run in the foreground, omit this.
## Stop and remove containers
docker-compose down
## Start / Stop / Restart a container
You will need to do thi after changing the freedmr config, for example
docker-compose start freedmr
docker compose stop freedmr
docker-compose restart freedmr
You can replace "freedmr" with the container you wish to restart
## Show running containers
docker-compose ps
## Update containers from repository
docker-compose pull
This should be followed by a down / up sequence
## Connect to a shell inside a running container
docker exec -it freedmr /bin/sh
Note, you probably don't want to do this unless you are heavily debugging. Remeber a docker container is a minimal install and doesn't have many tools inside. Also, most of the freedmr containers are read-only, so you can't change anything.
## Clean system of various things
docker network prune
docker container prune
docker image prune
## Run docker compose commands on another machine, remotely without logging in.
export DOCKER_HOST=“ssh://user@remotehost”
then you can use docker-compose commands locally, as if you were logged in to that server.