Skip to content

Manage containers

Containers are generally managed using standard Docker commands, so refer to the [Docker docs][https://docs.docker.com/] for further guidance.

Create containers

All services are defined in myApplication/docker-compose.yaml. To create a service use cd myApplication && docker compose up -d.

Starting and stopping

Stop a running container with docker stop myApplication and restart it with docker stop myApplication. Note that to stop an entire stack without deleting its containers, each container must be stopped individually.

Removal

Remove a stopped container with docker rm myApplication after stopping it. Remove an entire stack with cd myApplication && docker compose down.

Updates

Docker images can be updated in different ways, depending on personal taste. For a deeper dive into automated options, check out this blog post. They can also be manually updated:

  • Stop the running container with docker stop myApplication
  • Back up data in myApplication/data
  • Review the changelog of the new application version
  • Set the new image tag inmyApplication/docker-compose.yaml or pull the new image with docker pull
  • Remove the old container with docker rm myApplication
  • Start the new container with docker compose up -d