Загрузка страницы

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
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
18 апреля 2020 г. 23:37:37
00:22:40
Яндекс.Метрика