sudo bash -c "$(curl -LSs <https://github.com/dockermgr/installer/raw/main/install.sh>)"
dockermgr --config && dockermgr install scripts
dockermgr install watchtower
git clone https://github.com/dockermgr/watchtower "$HOME/.local/share/CasjaysDev/dockermgr/watchtower"
bash -c "$HOME/.local/share/CasjaysDev/dockermgr/watchtower/install.sh"
mkdir -p "$HOME/.local/share/srv/docker/watchtower/"
git clone <https://github.com/dockermgr/watchtower> "$HOME/.local/share/CasjaysDev/dockermgr/watchtower"
cp -Rfva "$HOME/.local/share/srv/docker/watchtower/dataDir/." "$HOME/.local/share/srv/docker/watchtower/"
sudo docker run -d \
--name="watchtower" \
--hostname "watchtower" \
--restart=unless-stopped \
--privileged \
-e TZ="${TZ:-${TIMEZONE:-America/New_York}}" \
-v "$HOME/.local/share/srv/docker/watchtower/data":/data:z \
-v "$HOME/.local/share/srv/docker/watchtower/config":/config:z \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower &>/dev/null
👤 Jason Hempstead