Wrong Compose Version??

ERROR: The Compose file './docker-compose.yml' is invalid because: 'name' does not match any of the regexes: '^x-' 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/ services.database.healthcheck value 'start_interval' does not match any of the regexes: '^x-' The yml is the one from the tutorial. and the env file is the example one
Docker Documentation
Compose file reference
Find the latest recommended version of the Docker Compose file format for defining multi-container applications.
38 Replies
Immich
Immich2d ago
:wave: Hey @pizzadestroyer34, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
Zeus
Zeus2d ago
Your version of docker is very old You can run docker -v to check Current is Docker version 28.1.1
Immich
Immich2d ago
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
pizzadestroyer34
pizzadestroyer34OP2d ago
28.0.4
Zeus
Zeus2d ago
How are you running immich? Please post the exact commands you ran You probably used docker-compose
pizzadestroyer34
pizzadestroyer34OP2d ago
sudo docker-compose up -d
Zeus
Zeus2d ago
Yeah, that’s not a thing anymore. You have an old phantom docker hanging around It’s docker compose So sudo docker compose up -d should work
pizzadestroyer34
pizzadestroyer34OP2d ago
the yml file's name is docker-dash-compose
Mraedis
Mraedis2d ago
Ok, that doesn't matter though
pizzadestroyer34
pizzadestroyer34OP2d ago
whe the vommand is docker compose
Mraedis
Mraedis2d ago
Because the file can be called anything you want, but it defaults to docker-compose.yml the command remains docker compose no matter what your file is called
pizzadestroyer34
pizzadestroyer34OP2d ago
good to know. thanks i will try to upgrade docker
Mraedis
Mraedis2d ago
You shouldn't need to try running sudo docker compose up -d first
pizzadestroyer34
pizzadestroyer34OP2d ago
/immich-app# sudo docker compose up -d unknown shorthand flag: 'd' in -d Usage: docker [OPTIONS] COMMAND [ARG...] Run 'docker --help' for more information BTW, thank you for the super fast replies. I didn't think anyone would reply until tomorrow 🙂 . very appreciated
Mraedis
Mraedis2d ago
Alright, so unfortunately missing compose after all, follow https://docs.docker.com/compose/install/ to install the latest Don't install docker desktop @pizzadestroyer34 sorry I should have been clear follow scenario two there https://docs.docker.com/compose/install/linux/#install-using-the-repository
pizzadestroyer34
pizzadestroyer34OP2d ago
👍
Zeus
Zeus2d ago
Very interesting. I guess the daemon from the old install just kept getting updated
Mraedis
Mraedis2d ago
It actually says on the link I posted 😛
After Docker Compose V1 was removed in Docker Desktop version 4.23.0 as it had reached end-of-life, the docker-compose command now points directly to the Docker Compose V2 binary, running in standalone mode.
Zeus
Zeus2d ago
That’s for docker desktop tho?
Mraedis
Mraedis2d ago
ah is it Ah whatever it's junk in both cases 😛
pizzadestroyer34
pizzadestroyer34OP2d ago
I am confused. So, docker used to have compose integrated, but now it's separate?
Mraedis
Mraedis2d ago
Something like that the important part is you have the old version and need the new one
pizzadestroyer34
pizzadestroyer34OP2d ago
Updated with sudo apt-get update sudo apt-get install docker-compose-plugin And run docker compose up -d It's doing different stuff now. "pulling" it says
Mraedis
Mraedis2d ago
(did you know apt-get was superseded by apt 😛 )
pizzadestroyer34
pizzadestroyer34OP2d ago
I didn't get the memo lol
Mraedis
Mraedis2d ago
It's been 10 years I think 😛
pizzadestroyer34
pizzadestroyer34OP2d ago
So, I run OMV, and I have apt get update, upgrade and dist-upgrade runnig each month. Shouldn't that have been enough to update compose as well? Ah, I guess, if they removed it from the main docker, it needs to be installed separately
Mraedis
Mraedis2d ago
It's like installing python3 vs python2 just updating python2 won't get you python3
pizzadestroyer34
pizzadestroyer34OP2d ago
Thank you gain gents and gals! I could not find a direct solution online to this, specifically for immich.
pizzadestroyer34
pizzadestroyer34OP2d ago
@Zeus
No description
pizzadestroyer34
pizzadestroyer34OP2d ago
stuck at 614.4mb
Zeus
Zeus2d ago
Uh, that would be a your PC or network issue Maybe you’re out of space or Internet is down
Mraedis
Mraedis2d ago
I'm voting out of space It's OMV a quick sudo df -hT will show whether I'm right
pizzadestroyer34
pizzadestroyer34OP2d ago
yah idk
No description
pizzadestroyer34
pizzadestroyer34OP2d ago
sys looks okay
Mraedis
Mraedis2d ago
Hmmm plenty of space in var Do you ever prune old docker images?
pizzadestroyer34
pizzadestroyer34OP22h ago
I have it automated, but yes I do. I run it a second time and the same issue. Can't be a network issue cuz I ssh in it and it loads.
Mraedis
Mraedis22h ago
Sometimes images just download wrong You'd think the checksum would prevent this..

Did you find this page helpful?