Difference between revisions of "Docker"
From Briki
(→Containers) |
(→Sonarr (Movie Downloads)) |
||
Line 22: | Line 22: | ||
sudo docker run --name radarr -e PUID=127 -e PGID=138 -e TZ=Europe/London -p 7878:7878 -v /var/lib/torrent/radarr/config:/config -v /var/media/videos/programs/movies:/movies -v /var/media/incoming/torrents/deluge:/downloads --restart unless-stopped linuxserver/radarr | sudo docker run --name radarr -e PUID=127 -e PGID=138 -e TZ=Europe/London -p 7878:7878 -v /var/lib/torrent/radarr/config:/config -v /var/media/videos/programs/movies:/movies -v /var/media/incoming/torrents/deluge:/downloads --restart unless-stopped linuxserver/radarr | ||
− | === Sonarr ( | + | === Sonarr (TV Downloads) === |
sudo docker run --name=sonarr -e PUID=127 -e PGID=138 -e TZ=Europe/London -p 8989:8989 -v /var/lib/torrent/sonarr/config:/config -v /var/media/videos/programs/tv:/tv -v /var/media/incoming/torrents/deluge:/downloads --restart unless-stopped linuxserver/sonarr | sudo docker run --name=sonarr -e PUID=127 -e PGID=138 -e TZ=Europe/London -p 8989:8989 -v /var/lib/torrent/sonarr/config:/config -v /var/media/videos/programs/tv:/tv -v /var/media/incoming/torrents/deluge:/downloads --restart unless-stopped linuxserver/sonarr | ||
Revision as of 10:22, 10 May 2019
Contents
Useful Commands
- docker ps -a
- List all containers
- docker container inspect <container>
- Show details of <container>
- docker logs <container>
- Show logs for <container>
- docker exec -it <container> /bin/bash
- Start an interactive shell in <container>
Updating container
sudo docker run --rm -v /var/run/docker.sock:/var/run/docker.sock taisun/updater --oneshot <container>
Containers
Plex
sudo docker run -d --name plex --network=host -e PLEX_UID=111 -e PLEX_GID=127 -e TZ=Europe/London -e PLEX_CLAIM=<CLAIM_TOKEN> -v /var/lib/plexmediaserver:/config -v /var/media:/var/media plexinc/pms-docker:plexpass
Tautulli (Plex Monitoring/Notifications)
sudo docker run --name tautulli -e PUID=127 -e PGID=138 -e TZ=Europe/London -p 8181:8181 -v /var/lib/torrent/tautulli/config:/config -v /var/lib/plex/Library/Logs:/logs --restart unless-stopped linuxserver/tautulli
Jackett (Torrent Gateway)
sudo docker run --name=jackett -e PUID=127 -e PGID=138 -e TZ=Europe/London -p 9117:9117 -v /var/lib/torrent/jackett/config:/config -v /var/lib/torrent/jackett/downloads:/downloads --restart unless-stopped linuxserver/jackett
Radarr (Movie Downloads)
sudo docker run --name radarr -e PUID=127 -e PGID=138 -e TZ=Europe/London -p 7878:7878 -v /var/lib/torrent/radarr/config:/config -v /var/media/videos/programs/movies:/movies -v /var/media/incoming/torrents/deluge:/downloads --restart unless-stopped linuxserver/radarr
Sonarr (TV Downloads)
sudo docker run --name=sonarr -e PUID=127 -e PGID=138 -e TZ=Europe/London -p 8989:8989 -v /var/lib/torrent/sonarr/config:/config -v /var/media/videos/programs/tv:/tv -v /var/media/incoming/torrents/deluge:/downloads --restart unless-stopped linuxserver/sonarr
Creating a dedicated IP for a home-assistant docker container
sudo docker network create -d macvlan --gateway 192.168.1.1 --subnet 192.168.1.0/24 --ip-range 192.168.1.231/29 -o parent=eth0 docker-subnet sudo docker run --init -d --name="home-assistant" -v /var/lib/homeassistant/docker:/config -v /var/www/html/arlo-snapshots:/arlo-snapshots -v /etc/localtime:/etc/localtime:ro --net docker-subnet --ip 192.168.1.231 homeassistant/home-assistant
Tautulli slow to start
This may be due to an attempt to chown a large number of files. Login to the container:
sudo docker exec -it <container> /bin/bash
Disable the chown step by editing /etc/cont-init.d/30-config
and commenting out the chown command.