| Commands for listing images | This command is used to listing images |
docker image ls |
|---|
| Command for Building images From the current directory's Dockerfile | This command is used for building from the current directory’s dockerfile
|
docker build |
|---|
| Command for Building images From a GIT remote repository | This command is used Building images command Using a remote GIT repository |
docker build github.com/creack/docker-firefox |
|---|
| Commands for tagging and building | This command for tagging and building. |
docker build -t eon/infinite |
|---|
| Specifying the Build Context while creating a Dockerfile | This is use to Build an image from a Dockerfile |
docker build -f myDockerfile |
|---|
| Creating a Dockerfile from a URL | It wil help to create a dockerfile with a specific URL. |
curl example.com/remote/Dockerfile | docker build -f - |
|---|
| Command for removing image | This command is used to removing a7n image |
docker image rm nginx |
|---|
| Using a File or the Normal Input Stream to Load a Tarred Repository | Use STDIN or a tar archive to load an image. |
docker image load < ubuntu.tar.gz
docker build -f myOtherDockerfile |
|---|
| Image Saving to a Tar Archiveard Input Stream | It is used Save one or more images to a tar archive |
docker image save busybox > ubuntu.tar |
|---|
| Showing the History of an Image | This command will let know the history of the image inside the docker |
image history |
|---|
| Making an Image Out of a Container | This command will help you to take an image out of the container |
docker container commit nginx |
|---|
| Command for image tagging | We can use this command for image tagging |
docker image tag nginx eon01/nginx |
|---|
| Command for pushing an image | We can push any image through this command |
docker image push eon01/nginx |
|---|