In Docker, you need to specify the base image you are going to build from and associated tags. In this video, learn how to use the FROM and LABEL keywords in a Dockerfile.
- [Male Speaker] Now one of the easiest ways to share … your work with other people is … to push the images to Docker Hub. … So let's use the hello-world image only because … it's relatively small and so will be easy to … upload to Docker Hub. … So I head over to my command line and I'm going to do … a docker pull hello-world just to make sure that … I've got it on my computer. … And now let's look for the image ID and copy it. … So, docker image ls and the image ID is fce and so on … so I copy that and so what we're going to do here … is to pretend that we've created the image from … a docker file and we'll call it my hello world. … So I'm going to tag this with a docker tag with … the image ID and my docker ID is … theolympicsguy/myhelloworld so mhw for myhelloworld … and call on latest. … I'm just going to clear the screen. … So I'm going to log in to Docker Hub, so that's docker login … and I enter my credentials so that's theolympicsguy, … I enter my password. … And now just going to take a look at all of the images …
- 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