Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.65 KB

File metadata and controls

30 lines (26 loc) · 1.65 KB

Docker Basic Useful commands :

The below commands are used frequently in our environment to build, deploy images as containers and also useful in debugging the containers when issue raised.

Command Description
docker build Build an image from a Dockerfile
docker commit Create a new image from a container’s changes
docker attach Attach local standard input, output, and error streams to a running container
docker config Manage Docker configs
docker cp Copy files/folders between a container and the local filesystem
docker diff Inspect changes to files or directories on a container’s filesystem
docker images List images
docker ps list the containers that running
docker inspect Return low-level information on Docker objects
docker kill Kill one or more running containers
docker load Load an image from a tar archive or STDIN
docker logs Fetch the logs of a container
docker pull Pull an image or a repository from a registry
docker push Push an image or a repository to a registry
docker rename Rename a container
docker restart Restart one or more containers
docker rm Remove one or more containers
docker rmi Remove one or more images
docker run Run a command in a new container
docker save Save one or more images to a tar archive (streamed to STDOUT by default)
docker volume Manage volumes

<- Back to Introduction - - - Back to Testing Applications - - - Ahead to Docker Volumes ->