-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 command deprecated, docker-compose up -d fails for Redis container; must first use docker-compose down #2196
Comments
I believe all of the documentation + examples should be updated but this also means some files needs to be renamed. I've been using |
Yeah I sort of mentally transitioned from There are issues with transitioning, which Docker documents here: https://docs.docker.com/compose/migrate/ And there's a https://docs.docker.com/compose/migrate/#migrating-running-projects I've wanted to clean up the docs and drop all references |
@Debianer What is your docker compose version? |
|
@Debianer That looks like an old version. I am at Did you install docker using |
Problem
When using
docker-compose up -d
after usingdocker-compose pull
(as per documentation) to upgrade containers, the setup stops working and containers don't come up. The main problem seems to be the Redis container throwing a bunch of error messages, more information below.Solution/Workaround
Use the command
docker-compose down
beforedocker-compose up -d
, as in:Pretty much the whole issue as well as suggested solutions are described here:
[Docker-compose giving 'ContainerConfig' errors after update today](https://askubuntu.com/questions/1508129/docker-compose-giving-containerconfig-errors-after-update-today)
I will copy and paste some stuff from the link, so people can find this.
When I run sudo docker-compose up -d, I get the following output:
Alas, my attempt at fixing this problem using the new command "docker compose" without the hyphen resulted in a set of new volume folders for the persistent data, which were empty. The old ones were still there. Because "docker compose" uses a new syntax for creating names of volume folders.
So when moving from "docker-compose" to "docker compose", I guess everyone will either need to rename their folders for persistent data (does this actually work?) or change the yaml file to point to the exact locations. My configuration still mirrors the example. It currently looks like this:
The resulting folder is named as such:
dockernextcloud_nextcloud
The "docker compose" command on the same yaml creates a new folder from scratch with this name:
docker_nextcloud_nextcloud
The text was updated successfully, but these errors were encountered: