This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 191
compose Up fails trying to recreate containers when not needed #494
Comments
I'm guessing it's because of this set to true: https://github.com/docker/libcompose/blob/master/docker/service/service.go#L242 |
I can confirm this was introduced by this commit: |
Simple Expected Example with docker compose: ---
version: '2'
services:
test.svr:
container_name: test.svr
image: alpine:latest
command: sleep 10000
Then make a change to the compose file
Libcompose is no longer following this behavior it is now barfing out an error on second up. |
Is anything happening about this? |
@lucacome This issue is due to the problem from L331-L347 in this file libcompose/docker/service/service.go Line 331 in 57bd716
@vito-c In the previous version before my PR, a service will always be recreated (because of hashing an array of addresses) hence this issue won't show itself. I'm glad it brings out this important bug. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I can't seem to find a way to replicate the behavior of
docker-compose up -d
, where if the container has not changed, nothing happens. Instead, I get:ERRO[0006] Failed to start: rethinkdb : Error response from daemon: endpoint with name rethinkdb already exists in network ubuntu_default
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: