Comments (3)
@alinamstanciu this is mostly because we directly invoke docker-compose
binary, which prints arbitrary output instead of a structured one. I believe we should not rely on their output format and try to parse out something meaningful.
Here is a failure:
Pulling sleep (busyboxs:latest)...
Error: image library/busyboxs not found
Here is another:
Validation failed in file '/etc/docker/compose/docker-compose.yml', reason(s):
Unsupported config option for 'sleep' service: 'commands'
As you see, totally unstructured.
Would a better error message such as docker-compose failed with exit code 1, check out /var/log/.../docker-extension.log
be more helpful to you?
from azure-docker-extension.
Would it be possible to just pass-through the stderr contents when the exit code is not 0? Otherwise, the error message you suggested is good as well.
(Also, since docker-compose can be flakey at times, could you add some logic to retry docker-compose a second time in case of failure?)
from azure-docker-extension.
@vishwam For now I just added the path of the log file that contains the docker-compose error to the error message that goes to the portal. This is effective in v1.1.1606092330
I have some concerns about adding retries as re-running docker-compose up
has certain semantics about already running containers. Also, adding retries here would increase end-to-end execution time of the extension and if the containers cannot be pulled again on the second retry, it doesn't exactly make things any better. So I'm not quite sure how many retries with what kind of backoff strategy we need here.
Feel free to open another issue if not having retries in docker-compose up
really impacts you.
from azure-docker-extension.
Related Issues (20)
- pkg/vmextension: cut dependency to openssl in decoding private settings HOT 1
- Provide newest version of docker-compose HOT 5
- [Question] Availability on Azure Germany Cloud HOT 7
- Would be great to allow configuration of 1.12 swarm mode HOT 2
- Distro not supported: "Container Linux by CoreOS" 1235.6.0" HOT 6
- TLS certs are optional for ARM template but mandatory in portal HOT 6
- Install Should Fingerprint OS at a Minimum HOT 1
- Enable Must Report Accurate Status HOT 1
- Cannot get protected settings to work HOT 3
- Unable to redeploy failed docker-compose settings HOT 1
- Redeploy from ARM template does not copy pem's in the correct format HOT 1
- error downloading docker-compose: i/o timeout HOT 1
- Docker extension times out HOT 8
- Enhancement: possibility to specify docker storage folder HOT 1
- Extensions settings not updated on scale set HOT 2
- Docker Extension with 'login' setting always failed with ''docker login' failed' on docker 17.06.0-ce HOT 3
- Make intallation timeout more flexable HOT 2
- This extension is out of date HOT 2
- Move project to archive HOT 1
- Guide on installing Docker with cloud-init? HOT 1
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 azure-docker-extension.