- [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.…
Author
Updated
10/28/2019Released
8/27/2018- 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
Duration
Views
Related Courses
-
DevOps Foundations: Containers
with David Linthicum1h 16m Beginner -
Learning Kubernetes
with Karthik Gaekwad2h 25m Beginner -
Docker Essential Training: 2 Orchestration
with David Davis1h 4m Intermediate
-
Introduction
-
What is Docker?2m 51s
-
1. Installing Docker
-
Setting up Docker1m 39s
-
Docker Desktop45s
-
Install Docker on Mac3m 45s
-
Install Docker on Windows3m 28s
-
Install Docker on Linux5m 55s
-
-
2. Using Docker
-
Run processes in containers6m 13s
-
Manage containers4m 50s
-
Exposing ports10m 58s
-
Container networking6m 48s
-
Legacy linking4m 40s
-
Images4m 17s
-
Volumes6m 24s
-
Docker registries3m 50s
-
3. Building Docker Images
-
What are Dockerfiles?4m 34s
-
Building Dockerfiles9m 21s
-
Dockerfile syntax5m 43s
-
Multi-project Docker files5m 44s
-
Avoid golden images2m 31s
-
-
4. Under the Hood
-
Docker the program6m 46s
-
Networking and namespaces7m 54s
-
Processes and cgroups3m 43s
-
Storage10m 54s
-
-
5. Orchestration: Building Systems with Docker
-
Registries in detail5m 46s
-
Intro to orchestration6m 39s
-
Kubernetes in AWS4m 36s
-
Google Kubernetes Engine4m 57s
-
-
Conclusion
-
Next steps41s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Building Dockerfiles