User Tools

Site Tools


raspberrypi4docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

raspberrypi4docker [2019/09/04 20:51]
ian
raspberrypi4docker [2020/02/13 22:55]
Line 1: Line 1:
-====== Docker install on the Raspberry Pi 4 ====== 
  
-The default ''docker.io'' package in Debian 10 (buster) is broken.  I used puppet and the puppetlabs-docker module to install the testing version of ''docker-ce'' I then configured the Plex Media Server as a docker container also using puppet. 
- 
-1. Run the following commands as root to install ''puppet'' 
- 
-<code> 
-# wget http://apt.puppet.com/puppet5-release-$(lsb_release -sc).deb 
- 
-# dpkg -i puppet5-release-$(lsb_release -sc).deb 
- 
-# apt update 
- 
-# apt install puppet 
-</code> 
- 
-2. Install the ''puppetlabs-docker'' module 
- 
-<code> 
-# puppet module install puppetlabs-docker 
-</code> 
- 
-3. Create a puppet manifest 
- 
-<note>The ''test'' channel is used because a ''stable'' package for the armv7l architecture didn't exist yet</note> 
- 
-''docker.pp'' 
-<code> 
-class { 'docker': 
-  docker_ce_channel => 'test' 
-} 
-</code> 
- 
-4. Apply the ''docker.pp'' puppet manifest to install and configure docker 
- 
-<code> 
-# puppet apply --test docker.pp 
-</code> 
- 
-5. Example: install and run the ''linuxserver/plex'' container by appending to the ''docker.pp'' file and applying the declarative manifest. 
- 
-''docker.pp'' 
- 
-<code> 
-docker::run { 'plex': 
-  image => 'linuxserver/plex', 
-  net => 'host', 
-  env => [ 
-    "PUID=1000", 
-    "PGID=1000", 
-    "VERSION=docker", 
-  ], 
-  volumes => [ 
-    "/var/lib/plex/config:/config", 
-    "/data/tv:/tv", 
-    "/data/movies:/movies", 
-  ], 
-} 
-</code> 
- 
-<code> 
-# puppet apply --test docker.pp 
-</code> 
- 
-6. You can then browse to the Plex webUI at http://raspberry.pi.ip.address:32400 
raspberrypi4docker.txt ยท Last modified: 2020/02/13 22:55 (external edit)

free spam filter