Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker-compose Error in yaml file #1

Open
grumpyprogrammingracoon opened this issue Jan 21, 2024 · 2 comments
Open

Docker-compose Error in yaml file #1

grumpyprogrammingracoon opened this issue Jan 21, 2024 · 2 comments

Comments

@grumpyprogrammingracoon

Install on Raspberry Pi4 running current RaspiOS

running "docker-compose up -d" I get

"ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the services key, or omit the version key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/"

@dbussert
Copy link
Contributor

I installed the latest bookworm PiOS image

cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Did a sudo apt update && sudo apt install docker-compose -y and had no problem starting the container with sudo docker-compose up. What version of compose are you using?

docker-compose -v
docker-compose version 1.29.2, build unknown

@grumpyprogrammingracoon
Copy link
Author

Changed the version from 3.8 to 3.3 in the yml file and the container started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants