Image
bash
docker images -a # list all docker images |
Container
bash
docker ps # show all running containers |
bash
docker run |
bash
docker system prune |
Docker compose
docker compose up
Create and start all containers within docker-compose.yml
bash
docker compose up |
docker compose down
Stop all containers and remove networks relating to docker-compose.yml
. It will NOT delete any volume unless the -v
option is used.
bash
docker compose down |
References
- Use the Docker command line | Docker Docs
- Docker Tutorial for Beginners - A Full DevOps Course on How to Run Applications in Containers | YouTube - freeCodeCamp.org
- 用 Docker 了嗎? 30 天的 Docker 基本教學 :: 2022 iThome 鐵人賽
- 容器 vs.鴨子 vs.搬運工 #Docker #什麼是容器? #可轉移的執行環境
- Jennifer 的 Docker 筆記本