Docker Cheat Sheet: by Via
Docker Cheat Sheet: by Via
docker stats <Container> Live data stream from container -e, –-env set env vars
docker logs <Container> Retrieves the containers logs -v, --volume Mount files or directories
-t, --tty
docker kill <Container> Kill a running container
exec Run a new command in a container
docker start <Container> Start container
cp copy path
docker stop <Container> Stop a running container
docker restart <Container> Restarts the container These options keywords can be add to most docker commands
docker unpause <Container> Un-suspends all the processes in the docker create <Image>:<Tag> Create image
container docker rmi <Image> Remove image
<Container> can be replaced with the containers ID or NAME docker save <Image> Saves images to a tar archive
docker volume inspect <Volume> Inspect volume docker network inspect <Network> Inspect a network
docker volume create <Volume> Create volume docker network create <Network> Create a network
docker volume rm <Volume> Removes a volume docker network rm <Network> Removes a network
<Volume> can be replaced with the volume ID or NAME docker network connect <Network> Connect a container to the
<Container> network