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
Cannot start services when ports are mentioned #4729
Comments
That same setup works fine for me. Is that your entire |
No i do not. |
Have you tried to isolate the issue into a smaller example? Do you still see the same bug with a simpler Compose file, e.g. version: '3'
services:
foo:
image: alpine
ports:
- "8800:80" Make sure it's in a separate, empty folder. |
same issue. done in a separate folder. Its really weird cuz it works fine when I manually perform the operation using the 'docker create -p ...' command |
Hmm, that's interesting. Did you install Compose using
|
For the
Docker compose verbose,
|
It might be an issue with Python 3 - I'll take another look. In the meantime, you might want to try using Python 2.7 instead and see if the issue still occurs. |
okay, switching to python 2 works. |
I've experienced the same issue on Python 3.5, installed via pip. Similarly, using python 2 fixes the issue. I experienced the issue with file versions 2.1 and 3.0, 3.2 but not 3.1. |
Hi experiencing the same problem just with Python3.5.0. |
Running `make check` breaks right now when the testing dependency `docker-compose` is installed in the version 1.12.0 (see the following GitHub issue: docker/compose#4729). Fixing the dependency to versions below 1.12.0 solves the problems and `make check` will result in green tests again. Change-Id: I62d83a1ef4495bae3699c2f89deecf213be82364 Signed-off-by: dpdornseifer <david.paul.dornseifer@sap.com>
I believe this Python bug is the cause of the issue: https://bugs.python.org/issue24931 |
Found it! For anybody interested in how to downgrade docker-compose, this link was useful for me: https://www.digitalocean.com/community/tutorials/how-to-install-docker-compose-on-ubuntu-16-04 |
@svitlanacs Please note that a much better solution would be to upgrade your Python installation. |
@shin- absolutely. But I'm running Ubuntu 14.04, so downgrading docker-compose was a simpler solution. |
I also downgraded to 1.11.2 as the Python version on Ubuntu 14.04 is 3.4.3. |
I have the same issue on python 2.7.6 / ubuntu 14.04.05 LTS with docker-compose version: "2.1". Switching to version: '2' have fixed the problem. |
I had same error with my port map and i solved that. Just wrote a map as string
replace with:
i am using docker-compose version 1.21.2, build a133471 |
For some reason I cannot bind the port correctly. When I remove the port, it works. If i change the port to any other number, it still does not work
However, run I run docker-com up -d, this does not work
Useful info:
The text was updated successfully, but these errors were encountered: