Page 1 of 1

[Solved] WARN[0000] /opt/yams/docker-compose.yaml: `version` is obsolete

Posted: Tue May 14, 2024 4:57 am
by Tomwaste

Hello,

Linux noob here. I keep hitting a wall during install and am not sure how to remedy. It keeps telling me my version of docker-compose is obsolete. Full text below. Any assistance would be appreciated.

Running the server...
This is going to take a while...
WARN[0000] /opt/yams/docker-compose.yaml: version is obsolete
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.config-hash%22%3Atrue%2C%22com.docker.compose.project%3Dyams%22%3Atrue%7D%7D": dial unix /var/run/docker.sock: connect: permission denied


Re: WARN[0000] /opt/yams/docker-compose.yaml: `version` is obsolete

Posted: Tue May 14, 2024 11:45 am
by rogs

Hey @Tomwaste!

It looks like you can't run docker without sudo. Check this: https://yams.media/faqs/common-errors/#docker

Cheers!

Roger.


Re: WARN[0000] /opt/yams/docker-compose.yaml: `version` is obsolete

Posted: Tue May 14, 2024 2:47 pm
by Tomwaste

Thanks! Hmm. Still hitting the same wall. I logged out and back in. I also made sure to user was part of the docker group. Still getting the same error.


Re: WARN[0000] /opt/yams/docker-compose.yaml: `version` is obsolete

Posted: Tue May 14, 2024 2:51 pm
by rogs

Can you run docker run hello-world without sudo? How did you install Docker? What OS are you using?


Re: WARN[0000] /opt/yams/docker-compose.yaml: `version` is obsolete

Posted: Tue May 14, 2024 3:00 pm
by Tomwaste

No, can't run it from the server. I'm using Linux Mint. It's a new instance installed specifically for this project. The script was unable to add Docker and Docker-Compose (I can't recall the error) so installed them both via sudo apt.


Re: WARN[0000] /opt/yams/docker-compose.yaml: `version` is obsolete

Posted: Tue May 14, 2024 5:17 pm
by rogs

I'm sorry, but I haven't tested if YAMS works on Linux Mint. The install instructions suggest you use either Debian server or Ubuntu Server 22.04

https://yams.media/install/steps/#dependencies


Re: WARN[0000] /opt/yams/docker-compose.yaml: `version` is obsolete

Posted: Tue May 14, 2024 6:20 pm
by Tomwaste

Ah, my bad. I assumed that since Mint was built on Ubuntu it would be fine. I'll just try with Ubuntu. Thanks for your help.


Re: WARN[0000] /opt/yams/docker-compose.yaml: `version` is obsolete

Posted: Tue May 14, 2024 6:22 pm
by rogs

No worries! I'm not sure if it works in Mint to be honest, it would be great to have the error message from the docker installation (I'm guessing there's a mismatch on the repositories).

Also, you never answered if you could run docker run hello-world, your issue might be that Docker is not installed correctly. I don't know what version of Docker Mint installs by default, so knowing if you can run docker run hello-world would be very beneficial :D


Re: WARN[0000] /opt/yams/docker-compose.yaml: `version` is obsolete

Posted: Tue May 14, 2024 11:29 pm
by Tomwaste

Aw, I'm sorry. I wiped that computer and installed Ubuntu before I saw this. It went smoothly! I did run hello-world for Docker when I was using Mint and it did work. If I remember correctly, the script was able to install Docker but not Docker-Compose. And after I installed it myself the script failed to recognize it for some time. I don't remember how I fixed that (or if it didn't just fix itself somehow). Like I said, I'm a newbie. I got no idea what I'm doing. I really appreciate your help on this. I might have spent a couple more days banging my head against the wall before figuring out it was because of the OS.


Re: WARN[0000] /opt/yams/docker-compose.yaml: `version` is obsolete

Posted: Tue May 14, 2024 11:32 pm
by rogs

Amazing! I'm glad it worked :D I'm marking it as fixed.

I'll always ask questions here, but you can also join our Discord or Matrix server and get or share tips with the people over there!