What is Dockerfile? How to create Dockerfile?

preview_player
Показать описание
In this tutorial we going to take a look on Dockerfile and try to answer on questions:

What is Dockerfile ?
Dockerfiles are text documents that allow you to build images for Docker. So the Dockerfile is essentially the build instructions to build the image.

How to create Dockerfile?

--- commands ---------
cd -location where to save file-
mkdir DockerFiles
touch Dockerfile
----------------------------------
--- Inside Dockerfile ---
FROM ubuntu
MAINTAINER mla
RUN apt-get update
CMD ["echo", "This is first message from Dockerfile"]
---------------------------------
List of instructions allowing to use in Dockerfile:

How to use Dockerfile?
--- commands ---
docker build -t mlaimage:1.0 .
docker run image

DOCKER PLAYLIST:
--------------------------------------------------------
SUBSCRIBE TO CHANNEL:

Don't forget pls to click on 'Like', its giving additional motivation to work on channel.
Thank you for watching, for subscription and see you soon.

#mlaautomation #docker #dockerfile #guide #tutorial #windows #beginner
Рекомендации по теме