- [Instructor] Now, let's build a Dockerfile.…Let's start with the most basic Dockerfile…that's still at all interesting.…Make a file called Dockerfile, with a capital D,…and I'm gonna put this in it,…and then I'm gonna build it and run it.…Let's go take a look.…So first, let me make a spot…to put our examples, mkdir example.…Alright, now let's go into that folder, ls.…Nothing there.…
I'm gonna use a simple text editor, nano Dockerfile.…Alright, the first line in a Dockerfile…specifies what image to start with.…Where do we begin?…That's FROM, and I'm gonna start…from an image called busybox.…It's very small and it has nothing but a shell in it.…Super tiny.…And starting from busybox, I would like to RUN,…so create a container in that container, RUN echo,…building simple docker image.…
Okay, after that's run, it's gonna save it into an image,…and then from that image, it's going to set…CMD to run when this image is started.…So, when this image is started,…I'm gonna have it run echo,…hello container.…So now I'm gonna exit, Control + X.…
- Installing Docker on Mac, Windows, and Linux
- Understanding the Docker flow
- Running processes in containers
- Managing, networking, and linking containers
- Working with Docker images, volumes, and registries
- Building Dockerfiles
- Managing networking and namespaces with Docker
- Building entire systems with Docker
Skill Level Beginner
DevOps Foundations: Containerswith David Linthicum1h 16m Beginner
Docker Essential Training: 2 Orchestrationwith David Davis1h 4m Intermediate
What is Docker?2m 51s
1. Installing Docker
2. Using Docker
3. Building Docker Images
4. Under the Hood
5. Orchestration: Building Systems with Docker
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.