Build YOUR OWN Dockerfile, Image, and Container - Docker Tutorial

preview_player
Показать описание
We spin up all types of containers on my channel in my tutorials but we have yet to build our own custom Docker container image. Today we'll start from scratch with an empty Dockerfile and create, build, and run our very own custom Docker image! We'll learn all the commands that everyone should know when building and maintaining images with Docker. This Docker tutorial is a great way to get started with Docker!

(Affiliate links may be included in this description. I may receive a small commission at no cost to you.)

00:00 - What is Docker?
00:27 - What is a Container?
01:00 - What is an Image?
01:18 - What are we doing Today?
01:47 - It all starts with a Dockerfile - FROM
03:20 - Environment Variables - ENV
03:51 - COPY Command
04:20 - Source files
05:57 - COPY command destination
06:39 - EXPOSE (You don't need this)
07:17 - CMD Entry point
08:13 - How to Build a Docker image
09:16 - Building image with a tag
09:47 - How create a container
10:47 - See our container running
11:23 - Stopping and starting containers
12:10 - Cleaning up containers and images
12:33 - Dockerignore files (how to ignore files)
13:51 - Docker exec into a container
15:23 - Add file to dockerignore file
16:50 - Other base images
17:52 - Stream Highlight - "Traefik is a series of tubes"

#Docker #DockerContainers #Containerization

"Switchstep" is from Harris Heller's album Insomnia.

Thank you for watching!
Рекомендации по теме
Комментарии
Автор

Have you built your down Docker container yet?

TechnoTim
Автор

Still relevant and useful two years later. I feel like I can do this, now. LFG!

Telorand
Автор

I just wanted to drop you a quick note to express my appreciation for the fantastic video tutorial you created. Your clear explanations and step-by-step guidance made learning 'Docker containers' a breeze!

tintincr
Автор

This timing is legendary. I just started looking into using containers for my setup and the first video i see is this one. Awesome vid btw, just what i needed

TheRagingDonut
Автор

Wow, what a great tutorial. In less than 20 minutes you explained what others would have taken hours. Thank you!

usimian
Автор

Thank you so much for NOT starting this with "here's how to download docker, here's how to install docker".

kevineugenius
Автор

This is the first video on docker that I have watched that makes sense of docker for me, in a way I can understand. Thank you so much! Now I'm going to attempt my first container 🙂

Electrowave
Автор

Bro this video is amazing. I just discovered Docker a few weeks ago, I had always just used Virtual Box or VMWare VMs. I figured out how to spin up a Unifi container pretty quickly, but what I really wanted to know was how to build my own container so I could do some custom things. This video tutorial is perfect!!

urgx
Автор

finally an actual practical tutorial that doesn't spend 90% of the time just explaining a bunch of boilerplate things like how to install it & what containers even are.

DFsdfd
Автор

I've watched literally dozens of videos about Docker on YT and found them confusing and lacking. This video is awesome and explains it all. Would recommend.

SilentKoala
Автор

Definitely agreed with all the other comments, great tutorial and a lot of gems worth diving deeper on outside of this video.

3 improvements IMO - 5 to 10 seconds without wasting time
1 - mention the OS you're on
2 - mention the installer of Docker you used
3 - actually show the Dockerfile being created so it's clear about file extension

I'm seeing the bigger picture more and more now.

matthewdavis
Автор

Omg. You’re video was amazing. So easy to follow and understand. I think I learned more about docker from you than multiple other videos. Thank you!

MrConcord
Автор

DUDE thank you! I've been looking for a video like this that starts from the beginning and does a simple example that's easy to follow. Usually the videos all show these big applications that they are wanting to containerize and it can be hard for a beginner to follow along.

mikegbow
Автор

Your teaching style is great!
Would love to see more from you🙌

yashsolanki
Автор

I tried following the instructions on the Docker Website and on other Tech Manuals and it didn't make since. But this Worked..Thank you sir..!!
💯💯💯💯

devohnmitchell
Автор

Thanks for this - I had no idea how to do anything but copy paste stuff for docker/portainer this morning. Followed this then a few hours later have managed to get automated builds from Github to Dockerhub, and then deployment from there to my home server for easy iteration!

Ericb
Автор

I did! Well done video, I probably won't need to be building my own containers much but had a special case, need to set up a quick web server to test something. Video was great! Oddly probably the most useful thing for me in the video was "exec into a container". I only knew how to do that from portainer and it wasn't working on one container but through this command in docker I was able to do it!

johnkmoore
Автор

Man this tutorial is super awsome and beginner-friendly. The presentation style is awesome - to the point and just the enough amount of info in one video. Thanks a lot!

rukbook
Автор

Great video! Id love to see a similar video detailing containers and storage. Like covering the different options that are available to persist data.

GSquaredOG
Автор

Awesome!! Exactly what I needed. You sir, are a legend

denniskluytmans