zl程序教程

您现在的位置是:首页 >  其他

当前栏目

[Docker] Container & image (docker run)

ampDocker Image run container
2023-09-14 09:00:52 时间

image: stopped container

 

Run a container:

docker run -d --name web -p 80:8080 nigelpoulton/pluralsight-docker-ci

Run in background.

Stop it:

docker stop web

Start it again:

docker start web

 

 

Stop all the running containers:

docker stop $(docker ps -aq)

 

Remove all the containers:

docker rm $(docker ps -aq)

 

remove all images:

docker rmi $(docker images -q)