Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 452 Bytes

README.MD

File metadata and controls

17 lines (11 loc) · 452 Bytes

Dockerfiles

Dockerfile is a declarative way of creating our own images. Docker will give us some syntax to create our own images.

File name should Dockerfile. docker command should run where your Dockerfile exists.

How to build image from Dockerfile

docker build -t [docker-hub-URL]/[your-username]/[image-name]:version .

How to push image to Dockerhub

docker push [docker-hub-URL]/[your-username]/[image-name]:version