A Dockerfile has a couple of essential components. In this video, learn what they are and how to use them.
So let's use a really simple example. … Now once you understand the principals here, … you can apply this to a more complicated docker file. … So I'm going to save this file, … now let's go ahead and build the image. … So remember to confirm you're in … the same directory as the docker file. … So I do a Docker Build. I'll give it a tag ts … for troubleshooting and dot to specify … the docker file's in this directory. … Now this will just take a couple of moments. … Now looking at step one and step two … on the screen, it's important to remember … that all docker images are layered … on top of other docker images. … And that you can start a container from any image. … So we've got an invalid operation error … at the bottom of the screen. … And if I scroll back up, so in step two … you've got a container, or a running image … in 0e98 and so on, … and in step one … from the ubuntu image, we've got an image … starting with 5890. So with this information … it's possible to run an interactive container …
- Why Docker is gaining prominence
- Running a container
- Docker under the hood
- Working with Dockerfiles
- Uploading images to Docker Hub
- Common use cases for Docker