Comments (6)
@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.
from libcompose.
I'm guessing it's because of this set to true: https://github.com/docker/libcompose/blob/master/docker/service/service.go#L242
from libcompose.
I can confirm this was introduced by this commit:
f5c34b0
from libcompose.
from libcompose.
Simple Expected Example with docker compose:
---
version: '2'
services:
test.svr:
container_name: test.svr
image: alpine:latest
command: sleep 10000
$ docker-compose up -d
Creating network "foo_default" with the default driver
Creating test.svr ...
Creating test.svr ... done
$ docker-compose up -d
test.svr is up-to-date
Then make a change to the compose file ports ["8080:8080"]
for example
$ docker-compose up -d
Recreating test.svr ...
Recreating test.svr ... done
Libcompose is no longer following this behavior it is now barfing out an error on second up.
from libcompose.
Is anything happening about this?
from libcompose.
Related Issues (20)
- Could not parse config for project which was created by the same lib HOT 1
- libcompose library ignoring set log levels HOT 3
- Issue with env_file population. HOT 2
- compose version: "2.0" HOT 1
- Lowercase sirupsen/logrus package import HOT 3
- Only one network alias created HOT 4
- 'hack' contains two packages in the same directory - breaking some tools HOT 1
- Question: How to use Up() without detached? HOT 4
- No image or build context specified error when using override file
- Build fails on a fresh checkout HOT 6
- Is this project dead?
- Volume driver reports as "changed" on second "libcompose up" attempt HOT 3
- Creating a network is slow
- Tie the docker events api into libcompose events
- docker compose file fails with libcompose passes with docker-compose CLI HOT 2
- libcompose differentiating between version 2 and version 2.0
- libcompose fails to create networks for version "2.0" and above
- libcompose build broken HOT 2
- Jenkins marking tests successful when they fail? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libcompose.