Secret Docker Commands you don't know!

  Рет қаралды 26,813

Christian Lempa

Christian Lempa

Күн бұрын

Get TypeAI PREMIUM now! Start your FREE trial by clicking the link here: bit.ly/ChristianLempaFeb24
I’ll show you some of the most useful and advanced Docker commands that are not commonly found in documentation. These commands will help troubleshoot issues, manage workloads across multiple machines, and deal with files and backups.
References
GitHub Repo: github.com/christianlempa/che...
________________
💜 Support me and become a Fan!
→ christianlempa.de/patreon
💬 Join our Community!
→ christianlempa.de/discord
________________
Read my Tech Documentation
christianlempa.de/docs
My Gear and Equipment-*
christianlempa.de/kit
________________
Timestamps:
00:00 Introduction
02:23 Manage Docker Resources
05:11 Remote Docker Servers
07:05 Copy Files
08:03 Troubleshoot Logs
10:36 Troubleshoot Network
________________
All links are and/or include affiliate links.

Пікірлер: 92
@christianlempa
@christianlempa 3 ай бұрын
Get TypeAI PREMIUM now! Start your FREE trial by clicking the link here: bit.ly/ChristianLempaFeb24
@ELIKESBIKES
@ELIKESBIKES 3 ай бұрын
Its a great product. Very useful but I would not be able to pay $29 a month. Way to expensive
@oliverolsen620
@oliverolsen620 3 ай бұрын
No matter topic you are covering - I'm ALWAYS learning something new... Love your channel and content - keep up the great work and continue to be an inspiration for all of us! 🙂
@christianlempa
@christianlempa 3 ай бұрын
Thank you so much! It's really motivating me right now, with all the pushback lately. Thanks for being supportive and enjoying the videos ❤️
@kevinhu196
@kevinhu196 3 ай бұрын
docker context is really helpful thanks for sharing!
@christianlempa
@christianlempa 3 ай бұрын
Glad it was helpful!
@gradientO
@gradientO 3 ай бұрын
Love your channel! Started a new job and learning a lot from your videos ❤
@christianlempa
@christianlempa 3 ай бұрын
Thank you man!
@gosnooky
@gosnooky 3 ай бұрын
The remote Docker context via SSH is a game changer.
@christianlempa
@christianlempa 3 ай бұрын
Cool! Glad you find it useful :)
@aminebc8541
@aminebc8541 3 ай бұрын
Thank you Christian, I was waiting for this for a moment 😊
@christianlempa
@christianlempa 3 ай бұрын
Awesome! You're welcome :)
@fuuman5
@fuuman5 3 ай бұрын
Didn't know what was eating my diskspace after building a lot of images over night by CI/CD. With the command "docker system df" which I didn't know I just found 140 GB build cache. These files were not shown by ncdu. Thank you - very helpful!
@neusprach
@neusprach 3 ай бұрын
Awesome tips! Thanks for sharing.
@christianlempa
@christianlempa 3 ай бұрын
Thank you for watching! :)
@billramsey5252
@billramsey5252 3 ай бұрын
Great content as usual! Keep up the awesome work!
@christianlempa
@christianlempa 3 ай бұрын
Thank you!
@Chiren
@Chiren 3 ай бұрын
Good stuff man, didn't know a few of these tips.
@christianlempa
@christianlempa 3 ай бұрын
Oh cool! Glad it was useful
@charlie_chiu
@charlie_chiu 3 ай бұрын
this is really nice, learned a lot, tks!
@christianlempa
@christianlempa 3 ай бұрын
Glad to hear that!
@freestudymusic550
@freestudymusic550 3 ай бұрын
This video is really thank you ❤
@christianlempa
@christianlempa 3 ай бұрын
Thanks! :)
@kassiano6781
@kassiano6781 3 ай бұрын
Great video!
@christianlempa
@christianlempa 3 ай бұрын
thanks!
@seans9168
@seans9168 3 ай бұрын
Excellent tips! Thank you! Ya, that layer caching is great, but damn it's hard on storage.
@bubi352
@bubi352 3 ай бұрын
Would be way worse without though
@christianlempa
@christianlempa 3 ай бұрын
Thanks! indeed :D
@ronm6585
@ronm6585 3 ай бұрын
Thanks Christian.
@christianlempa
@christianlempa 3 ай бұрын
You're welcome :)
@DanZimmerli
@DanZimmerli 3 ай бұрын
Christian what terminal software is this you are using?
@christianlempa
@christianlempa 3 ай бұрын
It's warp terminal! Covered it in the video before :)
@bubi352
@bubi352 3 ай бұрын
vscode with its docker extension is also interesting in this context - especially if you work with it for configuration.
@christianlempa
@christianlempa 3 ай бұрын
yeah! that's a good one, I recently made a video about how I'm managing all docker with vscode :D
@rongliao9255
@rongliao9255 3 ай бұрын
Great content❤❤
@christianlempa
@christianlempa 3 ай бұрын
Thank you bro :)
@infologiax
@infologiax 3 ай бұрын
Awesome :) thanks
@christianlempa
@christianlempa 3 ай бұрын
You're welcome
@laurentiusjudhianto6631
@laurentiusjudhianto6631 3 ай бұрын
I contemplated to add one more which is quite nice sometimes ```sudo truncate -s 0 $(docker inspect --format='{{.LogPath}}' nginx)``` to truncate docker logs (my example is to truncate the container name nginx).
@christianlempa
@christianlempa 3 ай бұрын
Oh cool! Thanks for sharing :)
@thibdub2752
@thibdub2752 3 ай бұрын
Hallo Christian, thank for the video, is it possible to display the docker context in the shell prompt like for your computer "xcad on xmac at ~ docker context < docker context name >" ?
@christianlempa
@christianlempa 3 ай бұрын
For some reason it doesn't work for me in starship, but i'll keep looking into it, if I find a solution
@DerTim
@DerTim 3 ай бұрын
Victor from DevOps Toolkit said once that you have an interest in keeping images small and recommended either alpine or using scratch and to use a sidecar container in kubernetes to debug. Is there a similar concept as a sidecar container in docker 🤔
@themacavelly
@themacavelly 3 ай бұрын
Hi! Would you mind sharing where to find your animated wallpaper? Thanks for all your work. I've been learning a lot for your videos.
@christianlempa
@christianlempa 3 ай бұрын
It's not a wallpaper, it's just a "cmatrix" command in your terminal :)
@domenicoragosta2690
@domenicoragosta2690 3 ай бұрын
Hi Chris, are these commands also available for podman ?
@christianlempa
@christianlempa 3 ай бұрын
Most of them should work in podman, too
@Lunolux
@Lunolux 3 ай бұрын
nice video actually in this list i only know the image prune because of docker dev environnement grow too fast lol docker context seem insane gonna take a look to log explorer too thx
@christianlempa
@christianlempa 3 ай бұрын
Thanks!
@allisondealmeida
@allisondealmeida 3 ай бұрын
How do I leave the last executed command below as shown in your terminal?
@chriS-zx2ok
@chriS-zx2ok 3 ай бұрын
Hi Christian, another nice video! Could you maybe make a video about vulnerability management in Homelab? I am looking for a tool that scans all VMs / containers in my Homelab and shows me open vulnerabilities. I want to make my Homelab as secure as possible despite network separation. That would be great! Thank you!
@christianlempa
@christianlempa 3 ай бұрын
Hm, that's an interesting topic, but I think I have to investigate more on this before I feel confident making a video.
@chriS-zx2ok
@chriS-zx2ok 3 ай бұрын
Thank you. Would be great! :)@@christianlempa
@AnythingGodamnit
@AnythingGodamnit 3 ай бұрын
I had seen the docker context command whilst glancing through available commands and assumed it was to do with the docker build context and didn't bother to dig into it. Now that I know what it's actually for (why didn't they call it "docker remote" a la git?) I 100% need it. That said, Synology run an old docker that doesn't have integrated docker compose yet, so not sure it will actually help me.
@christianlempa
@christianlempa 3 ай бұрын
Glad it was useful :)
@tamasmolnar4157
@tamasmolnar4157 3 ай бұрын
Awesome!!!
@christianlempa
@christianlempa 3 ай бұрын
Thx!
@seccentral
@seccentral 3 ай бұрын
thx for the docker tips Christian, but why would I want to install a centralized ai powered keylogger (basically) on anything ?
@christianlempa
@christianlempa 3 ай бұрын
Thanks for watching!
@ninji4182
@ninji4182 3 ай бұрын
hey can you help me with something, If I have docker running on a mini pc, how can I have containers access my nas with r/w permissions?
@danielberglv259
@danielberglv259 3 ай бұрын
Without knowing exacly how your setup is and what you require, my way of doing this for containers like Syncthing, Jellyfin and such that require access to certain aspects of the NAS is to use NFS (Or you can use Samba, but NFS is better for this as it supports Linux permissions). Use autofs (works much better than fstab for this scenario) to mount what you need to a main location on your docker host and then just use regular mounts in your containers just like with any other consistent volume.
@betterstack
@betterstack 3 ай бұрын
Great video Chris 🚀If anyone’s looking for more Docker videos, we’ve released a web-based Docker viewer and a logging tutorial to help the community too 💪
@ClayBellBrews
@ClayBellBrews 3 ай бұрын
Nice, netshoot ftw.
@christianlempa
@christianlempa 3 ай бұрын
Thx :)
@adnan-rauf
@adnan-rauf 3 ай бұрын
Awesome
@christianlempa
@christianlempa 3 ай бұрын
Thx!
@tonychia2227
@tonychia2227 3 ай бұрын
How do you make the command output goes down? Normally the previous command's output is scrolled up.
@christianlempa
@christianlempa 3 ай бұрын
It's using the "input top (reverse mode)" setting in the warp terminal
@SSBelmont
@SSBelmont 3 ай бұрын
Christian - Can you please do a new video on TrueNAS 23.10.2 and creating SMB shares? I cannot get this working from a Windows 11 PC. I can view and connect, but get "You don't have permissions." The UI has changed drastically and none of the old videos work when trying to create SMB shares on 23.10.2.
@christianlempa
@christianlempa 3 ай бұрын
Hm, I haven't look at it, yet. Not sure if this will be on my roadmap
@willianderuberkater3526
@willianderuberkater3526 3 ай бұрын
mir gefällt deine neue frisur
@christianlempa
@christianlempa 3 ай бұрын
lol, seit wann ist die neu? :D
@iGameUZ
@iGameUZ 3 ай бұрын
@lapoubelle77
@lapoubelle77 3 ай бұрын
First :D Thank you Chris for your awesome videos !!
@christianlempa
@christianlempa 3 ай бұрын
Glad you like them!
@Alex-oh5rt
@Alex-oh5rt 3 ай бұрын
not the typeai sponsorship ☠️
@christianlempa
@christianlempa 3 ай бұрын
?
@ThatNateGuy
@ThatNateGuy 3 ай бұрын
Wait, you're not a native English speaker? Zounds! 😱
@christianlempa
@christianlempa 3 ай бұрын
lol :D
@andrey0001
@andrey0001 3 ай бұрын
It seems Chris has exhausted himself.
@christianlempa
@christianlempa 3 ай бұрын
Why?
@andrey0001
@andrey0001 3 ай бұрын
@@christianlempa there is too much difference between what you released earlier
@Techintx
@Techintx 3 ай бұрын
@@christianlempaI really liked this video! I’m basic in Linux and docker, and this gives me a lot of ideas for debugging. Ignore the noise.
@WokCorner
@WokCorner 3 ай бұрын
Your videos are awesome but warp sucks bro.
@agenttank
@agenttank 3 ай бұрын
why does it suck? seems interesting to me, but sadly it doesnt work yet in my ARM Linux VM - i installed it on MacOS though, but i don't bother using it there :D
@frederickwood9116
@frederickwood9116 3 ай бұрын
The free one runs out of answers (100 I think is the limit) It’s interesting and better than flipping back and forth to another tool. It’s not integrated onto the system in a way it can read the terminal output and possibly logs in real time and make suggestions about what’s happening or broken. You still have to ask it like any other ai tool currently.
@christianlempa
@christianlempa 3 ай бұрын
Thank you man! :)
@peterkrau4486
@peterkrau4486 3 ай бұрын
This is literally all documented stuff. Wheres the secret here?
Manage Docker and Kubernetes in VSCode
21:54
Christian Lempa
Рет қаралды 26 М.
Docker explained simply
18:47
Christian Lempa
Рет қаралды 33 М.
Кәріс өшін алды...| Synyptas 3 | 10 серия
24:51
kak budto
Рет қаралды 1,3 МЛН
A pack of chips with a surprise 🤣😍❤️ #demariki
00:14
Demariki
Рет қаралды 35 МЛН
New Gadgets! Bycycle 4.0 🚲 #shorts
00:14
BongBee Family
Рет қаралды 17 МЛН
Countries Treat the Heart of Palestine #countryballs
00:13
CountryZ
Рет қаралды 26 МЛН
Is it time to switch from Docker to Podman?
16:05
Christian Lempa
Рет қаралды 218 М.
This Docker Compose UI is amazing! //Dockge Tutorial
13:08
Christian Lempa
Рет қаралды 94 М.
Ubuntu Server 24.04 | How to install from A to Z!
18:32
Maple Circuit
Рет қаралды 102
You want a real DNS Server at home? (bind9 + docker)
32:31
Christian Lempa
Рет қаралды 240 М.
Learning Docker // Build Container Images
23:02
Christian Lempa
Рет қаралды 28 М.
Docker vs Kubernetes, what's better in a Homelab?
14:57
Christian Lempa
Рет қаралды 78 М.
Automate local DNS with Bind and Terraform
20:56
Christian Lempa
Рет қаралды 53 М.
Is this the BEST Reverse Proxy for Docker? // Traefik Tutorial
21:57
Christian Lempa
Рет қаралды 494 М.
SMB Server In Docker with ZFS! Simple, Cheap, and Efficient!
23:00
Jim's Garage
Рет қаралды 41 М.
#miniphone
0:16
Miniphone
Рет қаралды 3,1 МЛН
APPLE совершила РЕВОЛЮЦИЮ!
0:39
ÉЖИ АКСЁНОВ
Рет қаралды 988 М.
ВСЕ МОИ ТЕЛЕФОНЫ
14:31
DimaViper Live
Рет қаралды 70 М.
Девушка и AirPods Max 😳
0:59
ОТЛИЧНИКИ
Рет қаралды 16 М.