Update Docker Commands Cheat Sheet authored by Simon's avatar Simon
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. This page contains some common commands you may need to use with Docker and FreeDMR. Most 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 ## Create and start containers
...@@ -43,10 +43,12 @@ Note, you probably don't want to do this unless you are heavily debugging. Remeb ...@@ -43,10 +43,12 @@ Note, you probably don't want to do this unless you are heavily debugging. Remeb
docker container prune docker container prune
docker image prune docker image prune
## Run docker compose commands on another machine, remotely without logging in. ## Run docker-compose commands without having to be in the /etc/freedmr directory
export DOCKER_HOST=“ssh://user@remotehost”
then you can use docker-compose commands locally, as if you were logged in to that server.
## 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. You need to have the docker-compose.yml file locally to do this.