Secret Docker Commands you don't know!

Ғылым және технология

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
    @christianlempa5 ай бұрын

    Get TypeAI PREMIUM now! Start your FREE trial by clicking the link here: bit.ly/ChristianLempaFeb24

  • @ELIKESBIKES

    @ELIKESBIKES

    4 ай бұрын

    Its a great product. Very useful but I would not be able to pay $29 a month. Way to expensive

  • @oliverolsen620
    @oliverolsen6205 ай бұрын

    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

    4 ай бұрын

    Thank you so much! It's really motivating me right now, with all the pushback lately. Thanks for being supportive and enjoying the videos ❤️

  • @gosnooky
    @gosnooky5 ай бұрын

    The remote Docker context via SSH is a game changer.

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Cool! Glad you find it useful :)

  • @gradientO
    @gradientO5 ай бұрын

    Love your channel! Started a new job and learning a lot from your videos ❤

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Thank you man!

  • @kevinhu196
    @kevinhu1965 ай бұрын

    docker context is really helpful thanks for sharing!

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Glad it was helpful!

  • @fuuman5
    @fuuman54 ай бұрын

    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!

  • @aminebc8541
    @aminebc85415 ай бұрын

    Thank you Christian, I was waiting for this for a moment 😊

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Awesome! You're welcome :)

  • @neusprach
    @neusprach5 ай бұрын

    Awesome tips! Thanks for sharing.

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Thank you for watching! :)

  • @billramsey5252
    @billramsey52524 ай бұрын

    Great content as usual! Keep up the awesome work!

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Thank you!

  • @DanZimmerli
    @DanZimmerli5 ай бұрын

    Christian what terminal software is this you are using?

  • @christianlempa

    @christianlempa

    4 ай бұрын

    It's warp terminal! Covered it in the video before :)

  • @charlie_chiu
    @charlie_chiu4 ай бұрын

    this is really nice, learned a lot, tks!

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Glad to hear that!

  • @Chiren
    @Chiren5 ай бұрын

    Good stuff man, didn't know a few of these tips.

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Oh cool! Glad it was useful

  • @kassiano6781
    @kassiano67814 ай бұрын

    Great video!

  • @christianlempa

    @christianlempa

    4 ай бұрын

    thanks!

  • @freestudymusic550
    @freestudymusic5504 ай бұрын

    This video is really thank you ❤

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Thanks! :)

  • @rongliao9255
    @rongliao92554 ай бұрын

    Great content❤❤

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Thank you bro :)

  • @ronm6585
    @ronm65855 ай бұрын

    Thanks Christian.

  • @christianlempa

    @christianlempa

    4 ай бұрын

    You're welcome :)

  • @infologiax
    @infologiax4 ай бұрын

    Awesome :) thanks

  • @christianlempa

    @christianlempa

    4 ай бұрын

    You're welcome

  • @laurentiusjudhianto6631
    @laurentiusjudhianto66315 ай бұрын

    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

    4 ай бұрын

    Oh cool! Thanks for sharing :)

  • @seans9168
    @seans91685 ай бұрын

    Excellent tips! Thank you! Ya, that layer caching is great, but damn it's hard on storage.

  • @bubi352

    @bubi352

    4 ай бұрын

    Would be way worse without though

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Thanks! indeed :D

  • @tamasmolnar4157
    @tamasmolnar41575 ай бұрын

    Awesome!!!

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Thx!

  • @bubi352
    @bubi3524 ай бұрын

    vscode with its docker extension is also interesting in this context - especially if you work with it for configuration.

  • @christianlempa

    @christianlempa

    4 ай бұрын

    yeah! that's a good one, I recently made a video about how I'm managing all docker with vscode :D

  • @betterstack
    @betterstack4 ай бұрын

    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 💪

  • @DerTim
    @DerTim4 ай бұрын

    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
    @themacavelly5 ай бұрын

    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

    4 ай бұрын

    It's not a wallpaper, it's just a "cmatrix" command in your terminal :)

  • @Lunolux
    @Lunolux4 ай бұрын

    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

    4 ай бұрын

    Thanks!

  • @adnan-rauf
    @adnan-rauf5 ай бұрын

    Awesome

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Thx!

  • @domenicoragosta2690
    @domenicoragosta26904 ай бұрын

    Hi Chris, are these commands also available for podman ?

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Most of them should work in podman, too

  • @thibdub2752
    @thibdub27525 ай бұрын

    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 " ?

  • @christianlempa

    @christianlempa

    4 ай бұрын

    For some reason it doesn't work for me in starship, but i'll keep looking into it, if I find a solution

  • @allisondealmeida
    @allisondealmeida4 ай бұрын

    How do I leave the last executed command below as shown in your terminal?

  • @chriS-zx2ok
    @chriS-zx2ok4 ай бұрын

    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

    4 ай бұрын

    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

    4 ай бұрын

    Thank you. Would be great! :)@@christianlempa

  • @ClayBellBrews
    @ClayBellBrews5 ай бұрын

    Nice, netshoot ftw.

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Thx :)

  • @AnythingGodamnit
    @AnythingGodamnit5 ай бұрын

    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

    4 ай бұрын

    Glad it was useful :)

  • @ninji4182
    @ninji41825 ай бұрын

    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

    5 ай бұрын

    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.

  • @seccentral
    @seccentral5 ай бұрын

    thx for the docker tips Christian, but why would I want to install a centralized ai powered keylogger (basically) on anything ?

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Thanks for watching!

  • @willianderuberkater3526
    @willianderuberkater35264 ай бұрын

    mir gefällt deine neue frisur

  • @christianlempa

    @christianlempa

    4 ай бұрын

    lol, seit wann ist die neu? :D

  • @iGameUZ
    @iGameUZ5 ай бұрын

  • @lapoubelle77
    @lapoubelle775 ай бұрын

    First :D Thank you Chris for your awesome videos !!

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Glad you like them!

  • @SSBelmont
    @SSBelmont4 ай бұрын

    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

    4 ай бұрын

    Hm, I haven't look at it, yet. Not sure if this will be on my roadmap

  • @tonychia2227
    @tonychia22275 ай бұрын

    How do you make the command output goes down? Normally the previous command's output is scrolled up.

  • @christianlempa

    @christianlempa

    4 ай бұрын

    It's using the "input top (reverse mode)" setting in the warp terminal

  • @Alex-oh5rt
    @Alex-oh5rt5 ай бұрын

    not the typeai sponsorship ☠️

  • @christianlempa

    @christianlempa

    4 ай бұрын

    ?

  • @ThatNateGuy
    @ThatNateGuy5 ай бұрын

    Wait, you're not a native English speaker? Zounds! 😱

  • @christianlempa

    @christianlempa

    4 ай бұрын

    lol :D

  • @andrey0001
    @andrey00015 ай бұрын

    It seems Chris has exhausted himself.

  • @christianlempa

    @christianlempa

    4 ай бұрын

    Why?

  • @andrey0001

    @andrey0001

    4 ай бұрын

    @@christianlempa there is too much difference between what you released earlier

  • @Techintx

    @Techintx

    4 ай бұрын

    @@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
    @WokCorner5 ай бұрын

    Your videos are awesome but warp sucks bro.

  • @agenttank

    @agenttank

    5 ай бұрын

    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

    5 ай бұрын

    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

    4 ай бұрын

    Thank you man! :)

  • @peterkrau4486
    @peterkrau44864 ай бұрын

    This is literally all documented stuff. Wheres the secret here?

Келесі