Containerize everything | build docker images with ease| step by step beginner tutorial

  Рет қаралды 374

Tech with Marco

Tech with Marco

Күн бұрын

In this video we are going to explore the world of containers and how to pack everything inside a container image. It is easy and even beginners can do it! Just build your DOCKERFILE for your personal needs!
No more 'It works on my machine' !
We use the software docker so make sure to have docker installed.
www.docker.com/
With building container images you can pack every dependency which is needed into the image and then everybody can start you application without installing anything else, than a container runtime.
Poke around and see how easy it is to build your own images and share them with the world.
🔗 My links:
github.com/marcogreiveldinger
marco-greiveldinger.de
techwithmarco.com
Support me at Patreon: / techwithmarco
00:00 -- Intro: Docker Images
00:53 -- Coding our python application
03:21 -- Write the Dockerfile
07:57 -- Building the image from the Dockerfile
09:12 -- Start a container from the docker image
11:12 -- Optimise the building process
12:40 -- Ignoring files during the build process
14:17 -- Outro
#docker #containerization #builddockerimages #python #devops

Пікірлер: 4
@dmbrv
@dmbrv 6 ай бұрын
Great video.
@techwithmarco
@techwithmarco 6 ай бұрын
Thank you :)
@Powerdrohne
@Powerdrohne 6 ай бұрын
Thanks for the nice tutorial! I would like to mention to optimize the layer order in the build step a bit to actually benefit from the Docker cache: First, add the requirements.txt file and then immediately run the pip install command. Then add the entire source code with the RUN command or the ENTRYPOINT at the end. The advantage of this sequence is that changes in the source code (which tend to occur more frequently than changes in the requirements.txt) do not require the layers above to be rebuilt. In practice, this also works if you simply add the entire source code at the end, which could point to this advantage even more: --------------------------- FROM python:3-slim WORKDIR /app ADD requirements.txt ./ RUN pip install -r requirements.txt CMD ["python", "-u", "app.py"] ADD . ./ ---------------------------
@techwithmarco
@techwithmarco 6 ай бұрын
Really good addition! Thanks for that :) I wanted to concentrate on building the image without much disturbance of other points to focus on.
Learning Docker // Build Container Images
23:02
Christian Lempa
Рет қаралды 30 М.
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 43 МЛН
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 61 МЛН
If you're not developing with this, you're wasting your time
14:30
Articulated Robotics
Рет қаралды 268 М.
I Tried Every AI Coding Assistant
24:50
Conner Ardman
Рет қаралды 730 М.
Kubernetes Course - Full Beginners Tutorial (Containerize Your Apps!)
2:58:01
How to create a great dev environment with Docker
29:55
Patrick Loeber
Рет қаралды 254 М.
Traefik DNS challenge with wildcard certificates | easy tutorial
13:29
Tech with Marco
Рет қаралды 3,2 М.
После ввода кода - протирайте панель
0:18
Up Your Brains
Рет қаралды 1,2 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 7 МЛН
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 7 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,7 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 3,1 МЛН