filmov
tv
Docker Tutorial - How to Use WORKDIR Instruction in Dockerfile
Показать описание
📅 TIMESTAMPS:
0:00 - Introduction to the Docker series and topics covered
1:15 - Explanation of the "workdir" keyword in Docker
3:30 - Example of using "workdir" in a Dockerfile
6:05 - Real-world example: Creating a Dockerfile for a sample application
8:30 - Building the Docker image and running the container
10:40 - Accessing the application in a web browser
I’m so glad you could join me for my Docker tutorial series! This time we will look at the ‘work dir’ instruction in Docker and how it can be used in a Dockerfile. But first, I want to give you a quick overview of what this Docker series is going to cover.
Starting with the installation of Docker on Ubuntu or Linux, we will go through everything from beginner-level to advanced topics. We’ll also talk about permissions and get an understanding of the Docker architecture. Additionally, different keywords for Dockerfiles such as ‘copy’, ‘add’ and of course ‘work dir’ will be explored.
Now let’s jump right into it – What does “work dir” mean? Well, this is basically a key that is used within docker files so as to set up where exactly files should be worked on when inside containers are created out of images. It makes operations on files confined within specific directories making them easy to handle later on.
I am going to show you how this works by walking through an example step by step. First we will create a folder called “docker work dir”; then inside that folder, we shall create a file known as “Dockerfile”. Inside the docker file there are instructions which create directory for our project and another one that creates file within that project directory. Finally build an image based on this dockerfile and run a container made from that image.
The next part involves using real world examples where there is an application which needs to be containerized. We clone git repository of said application then proceed forth by creating dockerfile with all necessary instructions; after which image gets built followed by running container thus giving us good understanding on how workdir can be utilized in actual projects.
At the end of the video not only will have seen but also be able to see the running web browser through the port number specified thereon.
Make sure you subscribe if new here and hit the bell icon so that notified about the latest videos in this docker series.
So come with me through these Docker journeys as we learn different ways of improving our workflows when working with containers using work dir. Let’s go!
WHO AMI I: I am Vicky Seth, a DEVOPS—AWS—CLOUD Engineer, I use my technical background to make videos about technology that help you to grow.
0:00 - Introduction to the Docker series and topics covered
1:15 - Explanation of the "workdir" keyword in Docker
3:30 - Example of using "workdir" in a Dockerfile
6:05 - Real-world example: Creating a Dockerfile for a sample application
8:30 - Building the Docker image and running the container
10:40 - Accessing the application in a web browser
I’m so glad you could join me for my Docker tutorial series! This time we will look at the ‘work dir’ instruction in Docker and how it can be used in a Dockerfile. But first, I want to give you a quick overview of what this Docker series is going to cover.
Starting with the installation of Docker on Ubuntu or Linux, we will go through everything from beginner-level to advanced topics. We’ll also talk about permissions and get an understanding of the Docker architecture. Additionally, different keywords for Dockerfiles such as ‘copy’, ‘add’ and of course ‘work dir’ will be explored.
Now let’s jump right into it – What does “work dir” mean? Well, this is basically a key that is used within docker files so as to set up where exactly files should be worked on when inside containers are created out of images. It makes operations on files confined within specific directories making them easy to handle later on.
I am going to show you how this works by walking through an example step by step. First we will create a folder called “docker work dir”; then inside that folder, we shall create a file known as “Dockerfile”. Inside the docker file there are instructions which create directory for our project and another one that creates file within that project directory. Finally build an image based on this dockerfile and run a container made from that image.
The next part involves using real world examples where there is an application which needs to be containerized. We clone git repository of said application then proceed forth by creating dockerfile with all necessary instructions; after which image gets built followed by running container thus giving us good understanding on how workdir can be utilized in actual projects.
At the end of the video not only will have seen but also be able to see the running web browser through the port number specified thereon.
Make sure you subscribe if new here and hit the bell icon so that notified about the latest videos in this docker series.
So come with me through these Docker journeys as we learn different ways of improving our workflows when working with containers using work dir. Let’s go!
WHO AMI I: I am Vicky Seth, a DEVOPS—AWS—CLOUD Engineer, I use my technical background to make videos about technology that help you to grow.
Комментарии