Skip to content

Instantly share code, notes, and snippets.

@fpigeonjr
Last active May 26, 2020 02:23
Show Gist options
  • Save fpigeonjr/d21c5792ce59f4be69196926d44d8150 to your computer and use it in GitHub Desktop.
Save fpigeonjr/d21c5792ce59f4be69196926d44d8150 to your computer and use it in GitHub Desktop.
Docker Commands

Docker Setup

make sure docker is installed sudo pacman -S docker

Then start and enable the service

  1. sudo systemctl start docker
  2. sudo systemctl enable docker

Post Docker Setup docs

  1. sudo groupadd docker
  2. sudo usermod -aG docker $USER
  3. newgrp docker // or restart the session
  4. docker run hello-world

Plex Docker Setup

  1. Loosely based on this guide from Plex
  2. Mount your 1TB external drive as /media
  3. sudo mkdir /media
  4. Permissions and things
  5. chown -R fpigeonjr:fpigeonjr /media
  6. chmod -R 755 /disks
  7. Permanent Remount on reboot
  8. Edit /etc/fstab
  9. add this line to the end of the file /dev/sdc1 /media ext4 defaults,auto,rw,nofail 0 1
docker run -d \
--name=plex-pms \
--restart=always \
--network=host \
-e TZ="America/Chicago" \
-e PLEX_CLAIM="claim-code-here" \
-v /media/db:/config \
-v /media/transcode \
-v /media/Movies:/data \
plexinc/pms-docker
docker run -d \
-p 9000:9000 \
--name=portainer \
-v /docker/containers/portainer/config:/data \
-v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment