rochi88 / devops_exercise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

devops_exercise

Docker Help

How to Do a Clean Restart of a Docker Instance

Stop the container(s) using the following command:

docker-compose down

Delete all containers using the following command:

docker rm -f $(docker ps -a -q)

Delete all volumes using the following command:

docker volume rm $(docker volume ls -q)

Restart the containers using the following command:

docker-compose up -d

Restart all container

docker restart $(docker ps -q)

Up container with new build

docker compose up --build

About

License:MIT License


Languages

Language:Shell 32.3%Language:HCL 28.1%Language:JavaScript 20.7%Language:Dockerfile 9.0%Language:HTML 2.6%Language:CSS 2.0%Language:Makefile 1.9%Language:C 1.7%Language:Rust 1.5%Language:Go 0.1%