-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Updated the command to run the Docker image #10490
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
Conversation
I am not sure if you want to run this detached |
I don't even know what That's why we need a Docker expert to show their experience and tell us: "you must run this other command instead. It's the right one and it will always run correctly." Thanks! |
|
should be correct. Note, you can have collisions on both name and port (if they're taken in host's scope). I'd recommend using some other port on host since you don't care either way.
|
BTW if the image is only meant as a build utility, you can probably provide it from Docker Hub instead of having the user build their own, that way they just start your image on their machine and start working on the docs. |
@dkarlovi I've just run your command and it didn't work for me :(
|
And the original command failed because of this error:
|
You already got the container running, and thus can't use the same name and port. So it looks like:
The best approach would be creating an image on Docker hub which you could just pull and run.
|
Thank you all for your help! I appreciate a lot the explanations. Thanks! I've tested everything and it seems that the original command worked ... except that I needed to add the white space as @andrewmy suggested. |
@javiereguiluz consider getting hold of this account: https://hub.docker.com/r/symfony/ This would allow you to do
Now your instructions can be:
I'd even go a step further and do what I usually do: add a
|
@dkarlovi we're going to try to recover the |
This PR was squashed before being merged into the 2.8 branch (closes #10490). Discussion ---------- Updated the command to run the Docker image We merged #10131 but the command shown to serve the image locally doesn't work for me. I'm using Docker 18.06.0-ce. The change I made in this PR worked for me ... but we'd need the help of Docker experts to verify and discuss about the best possible command that will work under any circumstances. Thanks! Commits ------- f277bdf Updated the command to run the Docker image
@javiereguiluz you should recover the |
We merged #10131 but the command shown to serve the image locally doesn't work for me. I'm using Docker 18.06.0-ce. The change I made in this PR worked for me ... but we'd need the help of Docker experts to verify and discuss about the best possible command that will work under any circumstances. Thanks!