![]() You can confirm that user pi is now part of group docker by running the id command followed by the username to see the user’s group id pi Once you are returned to an empty command line, grant user pi access to the newly created group named docker with sudo usermod -append -groups docker pi This is generally to be avoided for security reasons, so you should look over it before completing this next curl | sh Note that the following command will run a script (piped through to the shell) downloaded using curl directly from the internet. ![]() If you need to reinstall your base operating system, you can just copy over your configuration and data directory and replace it once you are done.įor the reasons of security and portability, containerization was chosen for the reproducible Raspberry Pi server build.įor installing Docker, again following the Perfect Media Server 2017 build guide and accompanying YouTube video, you will use the convenience install script hosted on Docker’s official website. Security might be a reason to not install that application directly on your desktop, but the install size and maintainability of the application may be the reason to containerize it and not virtualize it: a modern Windows install can take the better part of a day and dozens of gigabytes in space, while the installation of a Docker image can take as little as a few minutes and a few hundred megabytes.Īnother added benefit of containerization over a local installation of an application when security is not as important (as with an install of Jellyfin on a Raspberry Pi, for example) is that the application data are not scattered all around your system. You may though want to add a layer of security (you would not want a potential virus to gain access to your application data, for instance), so you could install a virtual machine inside of your desktop operating system and only use the virtual machine for the single purpose of online banking.Ĭonversely, you could install a containerized version of the application on your desktop and deny access to any other application of data generated by that online-banking application. You could install it on your desktop and use it there. Imagine that you want to run an application for online banking. on the host that you allow it to, but it also uses a lot fewer resources than a virtual machine. It may not be as versatile as running a full operating system, but it does have a few advantages: not only is a containerized application, like an application installed on a virtual machine, only able to access the data, connected devices, etc. You can use your mouse and keyboard within the operating system and even install applications, but once you close the program that is a running the virtual machine, you can no longer access the data or applications saved in it.Ĭontainerization, on the other hand, is more like running a single sandboxed application within an operating system. You can think about full operating system virtualization as running a full copy of Ubuntu inside of an install of Ubuntu. It differs from full virtualization in that what is being run is a very bare-bones system and not a full operating system with the likes of a word processor and web browser. In short, containerization allows you to run a very small operating system with a specific application within a larger operating system. The remainder of this section will be about exploring the world of containerization with Docker. If that is enough for you and your needs (for instance, if /mnt/storage is populated with personal documents and family photos which are not in need of a media server), you can stop right here. At this point, you should now be able to access any directory or file via Samba on pretty much any computer or smart device connected through your local network.
0 Comments
Leave a Reply. |