How to Use Container Manager (Docker) on a Synology NAS - Beginners Guide

Поділитися
Вставка
  • Опубліковано 27 сер 2024

КОМЕНТАРІ • 86

  • @Steve_Just_Steve
    @Steve_Just_Steve 10 місяців тому +2

    I finally feel like I have somewhat of a grasp on containers. Thank you.

  • @K0ROLOV
    @K0ROLOV 7 місяців тому +1

    Just wanted to say thank you :) U saved me on the volume thing, was stuck on this one ....

  • @jayh.3632
    @jayh.3632 6 місяців тому +1

    very good video, nice calm voice and perfectly to understand as a non native speaker :)

  • @aov_james
    @aov_james 9 місяців тому +1

    just bought synology nas few days ago and setting it up.... whoa so much information that I can't digest gives me headache. Thank you I just didn't get anything out of watching well made video (totally on me) I might have to watch several more times repeatedly..

    • @WunderTechTutorials
      @WunderTechTutorials  9 місяців тому

      It's definitely a lot at first, but you'll slowly get it! Let me know if you have any questions!

  • @TechMeOut5
    @TechMeOut5 11 місяців тому +1

    OMG what a great tutorial. It was a pleasure to watch and i learned a lot! thank you Frank!

  • @norbertbans
    @norbertbans 7 місяців тому

    Well done!!! This made me truly understand, how docker containers work. Well deserved thumbs-up and abo!!!

  • @creativeartdesign4820
    @creativeartdesign4820 3 місяці тому +1

    Perfect information and very good expaind, good job.

  • @QuikTechSolutions
    @QuikTechSolutions 11 місяців тому +2

    Frank, this is by far “THE BEST” video out there on UA-cam. You have a gift of explaining complex topics in a way that is simple to understand! Loved every minute of it!

  • @cani77
    @cani77 5 місяців тому

    Thanks a lot, I find the defines for my container with your video.

  • @WillBelden
    @WillBelden 9 місяців тому

    I've got a whole mess of stuff running on Docker on an old Intel NUC machine I have. I am SO glad to hear you talk about the importance of docker compose. I... knew it, from just the way I am, but had no real reason, other than "can change it and try again". And I may move things like photoprism, qbit, *arr, plex, all from that machine onto the DS1522+. Hopefully, my docker compose setups for each will make that easy. I am SO glad to see the DSM allows it, too! (Instead of it being an afterthought...) It's too bad, though, you can't create "stacks", though, like "media", "photos", "databases" with multi-setup docker compose YAML files. Or can you? Now that I type it, I think you can....since the image location is in the dc.yaml, NOT in the UI when using Projects!

    • @WunderTechTutorials
      @WunderTechTutorials  9 місяців тому +1

      Definitely agree - this is the exact scenario where Docker Compose shines!

  • @almazmusic
    @almazmusic 11 місяців тому +2

    Massive solid and clean pitch. Thank you.

  • @BrianDavids
    @BrianDavids 11 місяців тому +1

    Thank you! Your videos are always so good and full of great insight!

  • @JShayy
    @JShayy 7 місяців тому +3

    I can tell I should have got into NAS and docker in my 20's when I still had brain cells. In my late 30's I am barely keeping up with this.

    • @WunderTechTutorials
      @WunderTechTutorials  7 місяців тому +3

      You can do it! Definitely confusing early on but once it clicks, I promise it'll all make sense.

    • @L8rCloud
      @L8rCloud 5 місяців тому

      @@WunderTechTutorials
      [INSERT ROB SCHNEIDER MEME HERE]

  • @rlocone
    @rlocone 11 місяців тому

    Thanks for explaining the mac/vlan. Appreciated it.

  • @fatannasty
    @fatannasty 8 місяців тому

    That you very much! The information was delivered with great precision. I wished you thought my Cisco ISE course....LOL Awsome Job!

  • @Dutch1961
    @Dutch1961 8 місяців тому

    Great video. It really gave an insight on how to practically use Container Manager on my Synology NAS. However I won't be using it for pihole. I'll run that on my Raspberry Pi 4B so it will remain active for all of my other devices when I have to shutdown my NAS.

  • @Jase989
    @Jase989 5 місяців тому

    Great explanation Thank you very much!

  • @rmm2138
    @rmm2138 11 місяців тому

    Thank you so much for this awesome tutorial!

  • @kevinhughes9801
    @kevinhughes9801 11 місяців тому

    Excellent run through thank you

  • @jonathanlewis2008
    @jonathanlewis2008 5 місяців тому

    Very useful, thanks!

  • @venti4268
    @venti4268 11 місяців тому +1

    Simple ,to the point information, just as I like it. Keep up the good work!

  • @memoopi
    @memoopi 11 місяців тому

    as always, awesome!

  • @duchampnya3763
    @duchampnya3763 11 місяців тому +1

    I have this error message "Bind mount failed: '/volume1/docker/pihole/etc-dnsmasq.d' does not exists"
    How can I fix it

  • @Bumblecito
    @Bumblecito 5 місяців тому

    Thank you so much!

  • @parthp3639
    @parthp3639 11 місяців тому +1

    Great content as always

  • @CyberNinja6969
    @CyberNinja6969 2 місяці тому

    how would you auto update Pi-hole running in a docker container on the NAS?

  • @MichaelBelisle
    @MichaelBelisle 5 місяців тому

    i can't even get mine fixed. it's in permanent repair status. can't re-install it or repair it at all

  • @JBehrMusic
    @JBehrMusic 8 місяців тому

    The tech GOAT is back at it again, thanks for the tutorial! I had a question though. How do the persistant volumes work? I recently setup a container (mbentley/omada-controller) and created folders for DATA/LOGS/WORK. The container runs fine and I was able to setup my Omada Controller, but I see no data/files at all in any of the mapped volumes (DATA/LOGS/WORK). Is this because I don't have a compose file?

    • @WunderTechTutorials
      @WunderTechTutorials  8 місяців тому

      hahaha, thank you! If there is no data on the NAS itself (in the Docker folders that you mapped), the mapping isn't working. Either it's not mapped to the correct location on the NAS (/volume1/docker/[folder]), or the container folder (will be something with a forward slash in it - /data for example) isn't the correct path.
      Once the container runs, there should be some sort of data in at least one of the folders above. There could be some that are delayed (for example, no logs until logs occur, etc), but data should exist somewhere.

    • @JBehrMusic
      @JBehrMusic 8 місяців тому

      @@WunderTechTutorials Thanks for the reply! I believe I figured it out. I was following someone else's tutorial last night, and they had the mapping completely wrong. I didn't realize the left side of the colon (:) is the created path, while the right side is the actual path within the system. Would the best way to donate be the SUPER THANKS? Or do you have a "buy me a coffee" link. Thanks for your content!

    • @WunderTechTutorials
      @WunderTechTutorials  8 місяців тому

      @@JBehrMusic Glad you figured it out! I have a Ko-Fi link on my website but it's definitely not necessary. Thank you for the support!

  • @peixe225
    @peixe225 2 місяці тому

    Awesome

  • @jcdent5775
    @jcdent5775 5 місяців тому

    When you're setting the file paths, you mention the default "./etc-pihole" is the root directory - it's not, it means from where the process started("./"). On the assumption that docker starts in docker/pihole(in this case), can't you just literally leave this alone and it should work? Your only task is to make the folders as you've done.

  • @Simpuhl
    @Simpuhl 7 місяців тому

    I installed a few containers but I need to open the ports of externally. I port forwarded on my router but port is still closed? Do you got a video on what I'm missing? I tried adding the router and stuff like that also. It tests ok but still not open. Even disabled firewall to test. Nada

    • @WunderTechTutorials
      @WunderTechTutorials  7 місяців тому +1

      Are you using Synology's firewall by any chance? If so, did you create an allow rule?

    • @Simpuhl
      @Simpuhl 7 місяців тому

      I have firewall disabled, even enabled it and did the allow rule. Oddly enough I somehow got my qBitorrent docker container to work a while back and I remember it took me like 10 days to figure it out, now I am trying to do a game server, but can't for the life of me figure out what I did to make qBitorrent work.
      I am not behind a double nat, I did port forward on my router. My head is hurting trying to figure this out... I honestly didn't think you'd reply, also don't feel obligated to help but if you did have a video on how to install something like a torrent client (qbitorrent) and have those ports open so that others can seed off you etc. or even a gaming server so others can connect to it that would be great. I setup a Palworld server, but none of my friends can connect, only local lan, its driving me nuts.
      @@WunderTechTutorials

  • @Techie4life
    @Techie4life 11 місяців тому

    Great Job. Can i delay start of a container? As one of them is dependent on the other. Example: GluetunVPN and Deluge.

    • @WunderTechTutorials
      @WunderTechTutorials  11 місяців тому

      I haven't personally done it, but I believe that you can. How easy it is would be harder to comment. From what I can tell from Google, Docker Compose might be your best option.

  • @DeanDetton
    @DeanDetton 11 місяців тому

    Hey Frank, as usual, great video! If I already have all of my containers running in Portainer on Synology, is there a good reason to migrate them back to Container Manager? I have a few stacks running multiple containers from the same docker compose file.

    • @WunderTechTutorials
      @WunderTechTutorials  11 місяців тому

      Thank you! Short answer, if they're all running and you're happy with it, no need to change it. This is just another option!

  • @charlesromney
    @charlesromney 11 місяців тому

    How could I manage the boot order of the containers everytime that I restart my nas? I need to load first pi-hole and then unbound.

    • @WunderTechTutorials
      @WunderTechTutorials  11 місяців тому +1

      The only way that I've done it in the past in terms of boot order is by using both containers in the same Docker Compose file. With that said, if it's currently working as expected, I don't think you'd have to change anything.

  • @AnomalyMP
    @AnomalyMP 10 місяців тому

    Thanks for the great info! I wonder about which users have access to view/use/modify the Container Manager app? In Control Panel -> Application Privileges this package does not appear, and I haven't found any documentation that mentions this. Some containers setup login credentials using plaintext environment variables, so I'm trying to think through the implications...

    • @WunderTechTutorials
      @WunderTechTutorials  10 місяців тому

      I'm not exactly sure what the default user is, but I am fairly certain it's NOT root (since you can specify that). I know certain containers allow you to specify the UID/GID to run the container as a specific user, but that's really container-specific.
      As for the credentials, it's really container-specific as well. Some allow you to pass the credentials in through a secrets file, but it's very different based on the container, etc (and I haven't used Synology + a secrets file...generally a Portainer thing for me).

    • @AnomalyMP
      @AnomalyMP 10 місяців тому

      @@WunderTechTutorials Thanks for the reply :) I was actually thinking about which DSM users would have access to open the Container Manager app other than admins?

    • @WunderTechTutorials
      @WunderTechTutorials  10 місяців тому +1

      @@AnomalyMP Oh, my apologies. Should be the admins only! As far as who can access the actual application Docker is hosting, it'll be anyone on the local network (but you can limit it with Synology's firewall if you'd like).

  • @Aixalld
    @Aixalld 11 місяців тому

    anyone know why my Minecraft server when i start it up says its healthy soon as i join it has now saying warning unhealthy but unsure how to check why its unhealthy

    • @WunderTechTutorials
      @WunderTechTutorials  11 місяців тому +1

      Is anything mentioned in the Docker logs?

    • @Aixalld
      @Aixalld 11 місяців тому

      @@WunderTechTutorials thanks for replying , great video by the way
      but na cant see anything that stands out, only thing i can maybe think of is that in the Minecraft logs some plugins could be the issue, being some are old so maybe with the new container manager its just thinking its unhealthy when its not, as it did not do this in the old docker manager only when i updated to this new container manager, or at least did not noticed until this new update, but i mean it still running and everything seems fine, so im just going to leave it and see what happens lol,

  • @tomschi9485
    @tomschi9485 9 місяців тому

    *Thank you very much for your Video!, Unfortunately, the Synology Drive has a major problem:* It does not map the NAS access rights to the clients: If, for example, a user on the NAS has read-only access to a folder, he can change the folder content on his client. Synology Drive *does not* synchronize this content, but because it allows the user to do this, this is an extremely bad problem because it leads to many misunderstandings and problems. (e.g. a user changes a document but the team does not know anything about it. *It's a nightmare,* because the user says for example: "I've checked and updated the contract, you can sign it and send it to the customer."
    *Of course, Synology Drive must map NAS access-rights to the synced folders on the Clients (which is a simple to program code). Otherwise very bad things can happen.*

    • @WunderTechTutorials
      @WunderTechTutorials  9 місяців тому

      I will be honest in saying that I never thought of that scenario and it's definitely a valid one. My only concern is that I'm not exactly sure how they'd fix it since the user will have read/write permissions on the local folder and they can't (or at least shouldn't) modify the permissions of the local files.
      However, an indicator on the file letting the user know that it's read-only would definitely be helpful!

  • @user-rb8ig5hw7e
    @user-rb8ig5hw7e 5 місяців тому

    СПАСИБО :)

  • @mdawas1986
    @mdawas1986 10 місяців тому

    can you please explain how to SSH to docker container on Synology NAS ??

    • @WunderTechTutorials
      @WunderTechTutorials  9 місяців тому +1

      It's explained here: www.wundertech.net/how-to-use-docker-on-a-synology-nas/

    • @mdawas1986
      @mdawas1986 9 місяців тому

      @@WunderTechTutorials many thanks

  •  10 місяців тому

    I was about to install Pihole following your written tutorial in your webpage. Then, I saw your UA-cam video version that you used two networks (the bridge and the mcvlan). but in the compose version for DSM 7.2 in your webpage with container manager you do not mention nor add this bridge network and just used the macvlan "ph_network". Is there any reason not using the ph_bridge in the compose file? Also, I suggest if (just if) you have Ubiquiti Unifi devices, to do an Add-on video setting up Pihole with UDM Pro/SE gateway for example, as I pretty sure the DNS Server setup per under each VLAN is not working, instead I have to setup the DSN Server into DNS Server Setup into Internet Options WAN rather than per VLANS. I have spent months and payed with firewall rules and I cannot get it working per VLAN, as directly into the WAN is not recommended. I really hope you can take a look.

    • @WunderTechTutorials
      @WunderTechTutorials  10 місяців тому +1

      I spent about 3 hours trying to get the bridge network interface working with Docker Compose and it just won't work. The sad part is, I don't even know why because it works on other devices with Docker Compose. The second you add it to the Compose file, it tries to use it as the primary network interface and runs into issues. I am hoping it's a Synology bug and will try the compose file again after future updates. I think for now if you want it, you have to use Synology's GUI. With that said, it could certainly just be the compose file I created, but I don't think so.
      For UniFi, I do have a Dream Router that I have access to for tutorials but I use pfSense. I am not a fan of how UniFi handles their firewall rules and find them to be incredibly complicated for what you're actually doing. When pfSense is simpler from a firewall perspective, you know something is off, but the whole In/Out/Local thing just seems confusing to me. Again though, it could just be me.
      I do use UniFi for my Switches/AP's (and love them), but don't have a configured firewall to test with. Maybe in the future if they revamp the firewall section!

  • @DaveBerthiaume
    @DaveBerthiaume 11 місяців тому

    I just followed these instructions to install pihole with the compose file. It went fine and is up and running, but when I try to update my Gravity adlists, I get a "connection refused" error on each one. Anybody know how to debug this?

    • @WunderTechTutorials
      @WunderTechTutorials  11 місяців тому

      Did you add any lists or is this right after the default setup?

    • @DaveBerthiaume
      @DaveBerthiaume 11 місяців тому

      @@WunderTechTutorials It looks like I needed to open 443/tcp in my firewall. Then the list update successfully.

  • @ms7165
    @ms7165 10 місяців тому

    How does this video, basically ignoring Portainer, compare to today's Terramaster video where Portainer seems to put Container Manager in the back seat in terms of usage? Sorry, just trying to dive into the details a little and I feel a little conflict with Portainer vs Container Manager vs Docker Compose vs...........

    • @WunderTechTutorials
      @WunderTechTutorials  10 місяців тому

      The short answer is that Portainer is an incredible tool for Docker container management. My comment about why it's better than Container Manager is basically that Container Manager is built on top of DSM, while Portainer is built for Docker management. It's really just that.
      The downside of installing Portainer on a Synology is that you need to do it through the command-line interface. If you're comfortable there, it's not difficult at all. In terms of why I think TOS needs to ditch it - the actual Docker GUI they have is not good and Portainer is installed in their package center. Synology's is actually good, and while it's not as good as Portainer, it's 75% there which is enough to make it a suggested, usable option.

  • @ronald0122
    @ronald0122 11 місяців тому

    great video. i use watchtower for updates

  • @hanswi336
    @hanswi336 11 місяців тому +1

    What is docker and why would i need it ?? Until today I'm using my Synology only as a backup target for my computers...

    • @WunderTechTutorials
      @WunderTechTutorials  11 місяців тому

      Basically, you can run tons of different services inside of Docker. Hard to explain in a message like this, but this video dives a little deeper into why you might want to run Docker: ua-cam.com/video/cJvx7sKbiAI/v-deo.html

    • @hanswi336
      @hanswi336 11 місяців тому

      @@WunderTechTutorials Thank you for your quick answer.

  • @Pootch17
    @Pootch17 11 місяців тому

    I am using watchtower to update my containers automatically.

  • @L8rCloud
    @L8rCloud 5 місяців тому

    THERE IS SOMETHING I’M NOT GETTING AND IT’S MAKING ME FURIOUS…
    Why is it that, instead of providing adequate and detailed, easy to follow documentation and videos, based on its products Synology relies on people like yourself to create UA-cam videos at YOUR expense and YOUR time - whilst they benefit from the generation of a larger customer base leveraged off of the back of people like you rendering their hardware useful..???
    WHY ARE WE PAYING $YNOLOGY ??? WE SHOULD BE PAYING YOU
    …I guess it’s no longer a mystery what the ‘S’ stands for in Synology

  • @Nerd1701
    @Nerd1701 11 місяців тому

    Hello, not sure but a couple of days again I posted a question concerning Docker security - see NasCompares - ua-cam.com/video/q6EWb5Uf4UA/v-deo.htmlfeature=shared, but looking through the comments I see that post was deleted? Anyway, can you provide any insight concerning this issue??

    • @WunderTechTutorials
      @WunderTechTutorials  11 місяців тому +1

      It's hard for me to comment on that because it's a huge topic with tons of different scenarios. In summary:
      1. Don't give containers root permissions. In all of the tutorials I create, I avoid this, but if you have done it in the past, consider removing it.
      2. Don't expose services to the outside internet if you don't have to. Even services that you do have to - learn what you're doing and see if there are any ways to increase the security (like potentially utilizing a reverse proxy for authentication, etc).
      This is just general info and I admit that, but it's hard to give a suggestion when the article stated that 22,000+ containers were compromised. Without knowing what they are or what they do, best practices are your best form of protection.

    • @Nerd1701
      @Nerd1701 11 місяців тому

      Thanks for your quick response! I understand and you make a good point. I enjoy your videos they are very informative. Keep up the great work!!@@WunderTechTutorials

  • @noribinios5873
    @noribinios5873 3 місяці тому

    a begginers guide that doesnt show how to actually access these containers

    • @WunderTechTutorials
      @WunderTechTutorials  3 місяці тому

      No beginners guide is going to show that. Every container is accessed differently - you need to look up how to access whatever container you're using on the correct port(s).