-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 up --force-recreate fails with 'Network [..] needs to be recreated - option "isolate" has changed' #15580
Comments
Thanks for reaching out, @vinzBad! @flouthoc PTAL |
I'm hitting this too I can reliably trigger with |
We translate the docker options to podman options in the network create compat endpoint, to fix this we also need to translate the podman options to docker options before displaying them in the network inspect/list endpoint. |
I am having this too. The temporary workaround I'm using is to run
So it will forcibly remove the existing docker-compose containers and network. |
Anybody looked at this? Could it be selinux related? Running my compose, I saw a selinux issue, see |
@akostadinov even when selinux is in permissive mode, it still has this problem. I thought it might be selinux related too, but the selinux issues i ran into were unrelated. |
I am having a similar issue when I run
|
The workaround here is using this file and obeying the comments: # We assume this exists in /some/path/example/docker-compose.yaml
version: "3.8"
services:
redis:
image: "redis:alpine"
ports:
- "127.0.0.1:6379:6379"
networks:
default:
# Comment lines below if using for the 1st time
external: true
name: example_default This way, docker-compose won't try to check the value of the isolate option. But the 1st time you run the file, you should comment those last 2 lines to let docker-compose create the network (or precreate it with |
I will fix it sometime next week |
We force the isolate option on new newtworks because that is the docker behavior. However when we inspect them they should not be displayed to the caller since they have no idea about it and docker-compose throws an error because of that. Fixes containers#15580 Signed-off-by: Paul Holzinger <[email protected]>
I just tested with podman 4.2.1 and it is still failing. On which version is this fix gonna get released? |
4.3 |
Confirmed that this was fixed with 4.3.0 in fedora. Just installed from updates-testing
|
what about RHEL/CentOS? |
4.3.0 should be release ot RHEL and Centos with 12 weeks. |
I was having the same problem with docker-compose |
/kind bug
Description
Since updating podman to 4.2.0 I'm unable to use
docker-compose up -d --force-recreate
when the containers are already runningSteps to reproduce the issue:
first run of
docker-compose up -d --force-recreate
as there are no containers runningsecond run of
docker-compose up -d --force-recreate
fails withDescribe the results you received:
Unable to force recreate running containers defined in a docker-compose file.
Describe the results you expected:
Able to force recreate running containers (worked with podman 4.0.2)
Additional notes
The network must have been created by podman 4.2.0 to have
Networks created without this options don't cause this error.
Output of
docker-compose version
:Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: