Docker management
Here are some helpful commands for Docker management
Bring all services down
If you need to bring all services down for any reason, just change into the top-level directory (where the docker-compose.yml
file is), and invoke docker-compose down
:
Bring all services up
To bring all services up, just invoke the docker-compose-run.sh
script:
Update a single service
We will occasionally make new releases of HACC-Hui or need a new release of MongoDB.
On your production system, change into the hacchui-docker
directory and pull the latest files by invoking:
Then, redeploy HACC-Hui with the latest changes by invoking the docker-compose-run.sh
script:
Prune containers and images
As noted in the Docker chapter on prune unused Docker objects, when you install new Docker images, the old ones are not automatically deleted. Over time, unused and out of date Docker objects can consume significant amounts of disk space.
To determine if you have unused Docker containers, you can run the docker ps -a
command, which lists both running and stopped containers. Here is a sample run of that command:
In this sample output, all containers are current and running. Should you discover stopped and out-of-date containers, you can run the following commands to get rid of both out of date containers and images.
To prune containers:
To prune images: