Docker Command

 Build an Image


1) Using Dockerfile

docker build -t imagename .

1) (the command -t specify the name of the image you want to build)

2) . refer the current directory as the directory where Dockerfile is found.


2) Images can also be build from Running Container






Comments

Popular posts from this blog

Docker Desktop on Windows with WSL (Ubuntu)