Docker commands
List all images in docker-engine
docker ps -a
Delete image from the local image store
docker image rm alpine:3.4
Run a container from the Alpine
docker container run --name web -p 5000:80 alpine:3.9
Stop a running container through SIGTERM
docker container stop web
Stop a running container through SIGKILL
docker container kill web
List the running containers
docker container ls
Print the last 100 lines of a container’s logs
docker container logs --tail 100 web(container name)
List the networks
docker network ls
Comments
Post a Comment