In the above video, we talked about Dockerfile and how to create custom images in Docker. This video is part of the Docker Complete Series. For more please subscribe.
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
Watch more:
Docker Complete Series: • Introduction to Docker| Docker Comple...
Github Actions Series: • Create your first workflow in Github ...
DevOps Projects Series: • DevOps Complete Projects Series
Build complete CICD with Docker, Terraform, and AWS: • Complete CI/CD with Terraform and AWS...
Build a TODO List app in React: • TODO List App in React.js | JavaScrip...
Read blogs:
- Introduction to CI/CD and Jenkins: https://blog.tusharrajpoot.com/introd...
- Networking in Kubernetes visualized: https://blog.tusharrajpoot.com/kubern...
- Get started with Google Compute Engine: https://blog.tusharrajpoot.com/gettin...
- Array callback methods: https://blog.tusharrajpoot.com/array-...
About me:
I'm a DevOps Engineer and a passionate Developer from India with a strong interest in Cloud-Native and blockchain technologies. I mostly work on backend development, automating and optimizing critical deployments using various development and Cloud-Native technologies.
Portfolio: https://tusharrajpoot.com/
Blogs: https://blog.tusharrajpoot.com/
Twitter: / tush_tr604
Polywork: https://www.polywork.com/tushar_rajpoot
GitHub: https://github.com/tush-tr
Hashnode: https://hashnode.com/@tushtr
Medium: / tush-tr
Showcase: https://www.showwcase.com/tush-tr
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
Dockerfile
Docker is a basically a text file, it contains some set of instructions.
Automation of Docker image creation.
Docker Components
FROM:
For base image, this command must be on the top of dockerfile
RUN:
To execute commands, it will create a layer in image.
MAINTAINER:
Author/Owner/Description
COPY:
Copy files from local system(docker VM), we need to provide source destination(We can't download file from internet and any remote repo)
ADD:
Similar to COPY but, it provides a feature to download files from internet, also we extract file at docker image side.
EXPOSE:
To expose ports such as port 8080 for tomcat, port 80 for nginx etc.
WORKDIR:
To set working directory for a container
CMD:
Execute commands but during container creation.
ENTRYPOINT:
Similar to CMD, but has higher priority over CMD, first commands will be executed by ENTRYPOINT only.
ENV:
environment variables.
ARG:
to define the name of a parameter and its default value.
IGNORE:
#programming #webdesign #code #web #development #computer #programming #coding #python #security #developer #java #software #webdevelopment #webdeveloper #javascript #programmer #html #robotics #computerscience #coder
On this page of the site you can watch the video online Docker Tutorial | Creating custom Docker Images | Web Development | DevOps | Cloud-Native with a duration of hours minute second in good quality, which was uploaded by the user KubeKode 07 September 2022, share the link with friends and acquaintances, this video has already been watched 312 times on youtube and it was liked by 10 viewers. Enjoy your viewing!