How To Add remote R Pi Docker Server to Portainer.
Portainer is an amazing Web UI for Docker. Use it to control your Containers, Networks, Volumes and Images in Docker. In this video I'll show you how to also setup a Reaspberry PI running Docker so you can remotely add it to your running Portainer Server, and control multiple Docker servers from a single Portainer instance.
=== Links ===
Portainer Project
https://www.portainer.io/
Ubuntu server Raspberry PI Downloads
https://ubuntu.com/download/raspberry-pi
Angry IP Scanner
https://angryip.org/
=== Timestamps ===
00:10 - Intro to thr project
01:30 - Get the Ubuntu Server for R Pi
02:30 - Burn Ubuntu to SD Card using Etcher
04:30 - Move SD Card to R PI and initial boot
06:00 - Connect to R Pi through SSH and install Docker
10:30 - Add our user to the Docker group
11:30 - Install Portainer on R PI (not specifically necessary for accessing it remotely).
14:40 - Setup Docker Daemon on R PI to access it Remotely
=== Contact ===
Contact me at -
Twitter: @mickintx
Telegram: @MickInTx
Mastodon: http://mastodon.partecipa.digital/ @MickInTX
or at
https://discourse.opensourceisawesome.com
Get a $50.00 credit for Digital Ocean by signing up with this link:
https://m.do.co/c/a6a61ae55242
Use Hover as your Domain Name Registrar to get some great control over you domains / sub-domains:
https://hover.com/SHPaiirr
Support my Channel and ongoing efforts through Patreon:
https://www.patreon.com/bePatron?u=234177
What does the money go to?
To Pay for Digital Ocean droplets, donations to open source projects I feature, any hardware I may need to purchase for future episodes (which I will then give to a subscriber in a drawing or contest).
=== Attributions ===
Intro and Outro music by www.bensound.com
=== How To - My Instructions ===
Setup Docker on RPi
curl -fsSL https://get.docker.com -o get-docker.sh
then run the script
sudo sh get-docker.sh
Finally, add your user to the docker group
sudo usermod -aG docker ubuntu
Now install portainer in docker
Install Instructions for Portainer
sudo docker volume create portainer_data
sudo docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
1. Login to Portainer on the Pi
2. Create your admin user.
3. Select 'Local', and let portainer import your local containers.
Pi as a Remote Portainer
Now, we'll setup the Pi for the remote access / addition to another portainer install.
1. Running Raspberry Pi 4 with Ubuntu server 19.10
cd /etc/systemd/system
2. if a directory for docker.service.d does not exist in this location, make it.
mkdir docker.service.d
3. cd into that direcotry with
cd docker.service.d/
4. and make a new file called remote-api.conf
nano remote-api.conf
5. put the following in that file.
[Service]
ExecStart=
ExectStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock
6. and save that file.
7. Now, reload the daemon services with
sudo systemctl daemon-reload
8. and restart docker with
sudo systemctl restart docker
Done: You may want to restart your pi, but it's up to you. I didn't.
Now you should be able to add that pi as a remote portainer from another machine using the pi IP address, and the port (in my case 2375) you set in the config file.
Видео How To Add remote R Pi Docker Server to Portainer. канала Awesome Open Source
=== Links ===
Portainer Project
https://www.portainer.io/
Ubuntu server Raspberry PI Downloads
https://ubuntu.com/download/raspberry-pi
Angry IP Scanner
https://angryip.org/
=== Timestamps ===
00:10 - Intro to thr project
01:30 - Get the Ubuntu Server for R Pi
02:30 - Burn Ubuntu to SD Card using Etcher
04:30 - Move SD Card to R PI and initial boot
06:00 - Connect to R Pi through SSH and install Docker
10:30 - Add our user to the Docker group
11:30 - Install Portainer on R PI (not specifically necessary for accessing it remotely).
14:40 - Setup Docker Daemon on R PI to access it Remotely
=== Contact ===
Contact me at -
Twitter: @mickintx
Telegram: @MickInTx
Mastodon: http://mastodon.partecipa.digital/ @MickInTX
or at
https://discourse.opensourceisawesome.com
Get a $50.00 credit for Digital Ocean by signing up with this link:
https://m.do.co/c/a6a61ae55242
Use Hover as your Domain Name Registrar to get some great control over you domains / sub-domains:
https://hover.com/SHPaiirr
Support my Channel and ongoing efforts through Patreon:
https://www.patreon.com/bePatron?u=234177
What does the money go to?
To Pay for Digital Ocean droplets, donations to open source projects I feature, any hardware I may need to purchase for future episodes (which I will then give to a subscriber in a drawing or contest).
=== Attributions ===
Intro and Outro music by www.bensound.com
=== How To - My Instructions ===
Setup Docker on RPi
curl -fsSL https://get.docker.com -o get-docker.sh
then run the script
sudo sh get-docker.sh
Finally, add your user to the docker group
sudo usermod -aG docker ubuntu
Now install portainer in docker
Install Instructions for Portainer
sudo docker volume create portainer_data
sudo docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
1. Login to Portainer on the Pi
2. Create your admin user.
3. Select 'Local', and let portainer import your local containers.
Pi as a Remote Portainer
Now, we'll setup the Pi for the remote access / addition to another portainer install.
1. Running Raspberry Pi 4 with Ubuntu server 19.10
cd /etc/systemd/system
2. if a directory for docker.service.d does not exist in this location, make it.
mkdir docker.service.d
3. cd into that direcotry with
cd docker.service.d/
4. and make a new file called remote-api.conf
nano remote-api.conf
5. put the following in that file.
[Service]
ExecStart=
ExectStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock
6. and save that file.
7. Now, reload the daemon services with
sudo systemctl daemon-reload
8. and restart docker with
sudo systemctl restart docker
Done: You may want to restart your pi, but it's up to you. I didn't.
Now you should be able to add that pi as a remote portainer from another machine using the pi IP address, and the port (in my case 2375) you set in the config file.
Видео How To Add remote R Pi Docker Server to Portainer. канала Awesome Open Source
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Portainer, a free, open source, self-hosted Web GUI for your Docker Instances - Local and Remote!Docker Compose in 12 MinutesGuacamole Remote Desktop - Open Source, Self Hosted remote access to your machines in the browser!Remotely Update - an Update on an open source, free alternative to TeamViewer, Anydesk, GoToAssist..Add ALL of your Docker Hosts to ONE Portainer Dashboard Using the Portainer Edge AgentHow to install Docker (and Portainer) on a RaspberryPi and run millions of apps on your RaspberryPi!21 Awesome Apps on Raspberry Pi OS That You Might Not Know!Docker 101: Pi-Hole on Docker and Synology with MacVlanWebinar: Using Scripts in remote.itInstalling Portainer and Portainer Agent - An update to show you an easier way to manage Docker.How to create a simple Touchscreen GUI || Arduino LCD & Touchscreen TutorialPortainer 2.0 -- Now with more Kubernetes!the Raspberry Pi PHONE SYSTEM! (3CX PBX at home)Seafile on Docker - Self-Hosted Dropbox/Google DriveDocker-compose tutorialRaspberry Pi OS. Backup, Shrink and Restore to SD, USB or SSD. Raspberry Pi 400, Pi 4.Raspberry Pi OMV 5 NASRemotely, a free open source Remote Support Alternative to Anydesk GTA LogmeIn TeamViewer and more.Portainer Install Ubuntu tutorial - manage your docker containers