Docker & Medusa – manual update

Leave a comment

April 5, 2019 by aubreykloppers

I got the following popup on Medusa, but could not update using the UI:

There is an update available: please pull the latest docker image, and rebuild your container to update

To fix this I did the following, actually I created a script:

#!/bin/bash
docker stop medusa
docker rm medusa
docker pull linuxserver/medusa
docker create --name=medusa --restart=always \
-v /home/docker/medusa/config:/config \
-v /srv/{disk}/docker/medusa/downloads/watch:/watch \
-v /srv/{disk}/docker/medusa/downloads/incomplete:/incomplete \
-v /srv/{disk}/docker/medusa/downloads/complete:/complete \
-v /srv/{disk}/docker/medusa/downloads:/downloads \
-v /srv/{disk}/tv:/tv \
-e PGID=100 \
-e PUID=1000 \
-e TZ=Africa/Johannesburg \
-p 8081:8081 linuxserver/medusa
docker start medusa; docker logs --tail=10 -f medusa

As you can see, I am from South Africa, so change your timezone to what you use, or leave it out…

To cleanup any leftovers, I do the following, actually I added it into my CRON:

docker images -q --filter "dangling=true" | xargs -n1 -r docker rmi

That is it!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: