-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
Hi @billraff, not familiar with Synology, but @jasonacox and I discussed this before making the change; we mentioned Synology as a possible problem but weren't able to test. It looks like we will have to roll this change back, unless (or until) we work out if Synology is stuck with V1 docker. The discussions are here for issue #453 and in PR #454 I'll have a look and see if there are any options for upgrading docker on synology - as docker V1 is very old: 2016 :) Now that I have a closer look at your dashboard, I see that you've run Can you run It looks like you might have a newer version of docker compose, but one that only runs with the docker-compose format rather than docker compose. If so, we'll need to work out how to fix the test in upgrade.sh |
Beta Was this translation helpful? Give feedback.
-
OK, @billraff, if you're up to it, I have a solution that it would be worthwhile to check - this installs the latest v2 Docker compose (2.26 - so roughly 17 versions newer than you're running). If you have a look at https://piotrkrzyzek.com/install-docker-compose-plugin-v2-on-synology-dsm-7/ this sets out the instructions - but at the time this was written, the version for the instructions was the latest available: 2.17.2 The updated instructions - based on the latest release - are below: For just your user: DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/v2.26.0/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose For all users: DOCKER_CONFIG=${DOCKER_CONFIG:-/usr/local/lib/docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/v2.26.0/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
To test:
Or just try again with If this works, we'll work out a way to get this into the ./upgrade instructions for Synology users. |
Beta Was this translation helpful? Give feedback.
-
I'm not a bash expert ;) but it looks like it would. This is what I see on a system with docker compose V2 only - I guess you tested that on your V1 test system: ubuntu@mastodon:~/mastodon$ COMPOSE_VERSION=`docker-compose version --short`
Command 'docker-compose' not found, but can be installed with:
sudo snap install docker # version 24.0.5, or
sudo apt install docker-compose # version 1.29.2-1
See 'snap info docker' for additional versions.
ubuntu@mastodon:~/mastodon$ COMPOSE_VERSION=`docker compose version --short`
ubuntu@mastodon:~/mastodon$ echo $COMPOSE_VERSION
2.25.0
ubuntu@mastodon:~/mastodon$ Interestingly, I found a WSL version that didn't have docker compose installed at all (just docker - I'd used it to build some images), so I was able to test it... If I install a V1, COMPOSE_VERSION even with --short gives me 1.29.2 So the test might need to be > 2? |
Beta Was this translation helpful? Give feedback.
-
Yep, that worked on V1 |
Beta Was this translation helpful? Give feedback.
Oops! My bad. 🤦 I didn't catch the "exit" command that still existed after the docker-compose check. I just pushed a fix (see cabc584). You should be able too run
upgrade.sh
now and see it work.The good news is that it passed the check. Now let's see if the rest of it runs... Give it a try.