Skip to content

Docker commands

While starting, stopping and evaluating CEDAR Docker, you could meet issues with the Docker images and containers.

Sometimes you could need to delete Docker resources (volumes, images, containers) in order to create/build them again.

To do so, we have a set of utility scripts that can help you:

Docker Containers

List the containers using:

docker ps -a

Remove the CEDAR-related containers using:

${CEDAR_DOCKER_DEPLOY}/bin/util/remove-docker-containers.sh 

Docker Volumes

List the volumes using:

docker volume list 

Remove the CEDAR-related volumes using:

${CEDAR_DOCKER_DEPLOY}/bin/util/remove-docker-volumes.sh 

Or remove them one-by-one:

docker volume rm <volume_name>

Docker Images

List the images using:

docker images

Remove the CEDAR-related images using:

${CEDAR_DOCKER_DEPLOY}/bin/util/remove-docker-images.sh 

If you want to remove all the images, you can use:

${CEDAR_DOCKER_DEPLOY}/bin/util/remove-all-docker-images.sh

Docker Networks

List the networks using:

docker network list

Remove the CEDAR network using:

${CEDAR_DOCKER_DEPLOY}/bin/util/remove-docker-network.sh