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
Unable to recreate container with network type container:<name> that was on bridge network #2316
Comments
Yeah, I have this issue too. Cannot set network to container. But if I do it in cli, it run perfectly |
I have the exact same issue as well. |
I have the exact same issue as well. |
Same issue as well, how can you make this work since otherwise isn't the option useless? |
You need to use Docker command line to get this working unfortunately
Le mar. 22 oct. 2019, à 12 h 38, Ellison Patterson <notifications@github.com>
a écrit :
… Same issue as well, how can you make this work since otherwise isn't the
option useless?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2316?email_source=notifications&email_token=AB5ATGMGSNV2LVXJ3ZM26LTQP4UBFA5CNFSM4FYES3N2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB6MW6Q#issuecomment-545049466>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5ATGLAQNLSBFWTEX3UG5TQP4UBFANCNFSM4FYES3NQ>
.
--
[image: photo]
*Jeremie Dufault*
jedduff@gmail.com
jeremiedufault.ca
<http://facebook.com/jeremiedufault>
<http://us.linkedin.com/in/jeremiedufault> <http://twitter.com/jedduff>
<https://www.linkedin.com/in/jeremiedufault/>
|
Finally I have to use the docker-compose to solve my problem. |
@immortalt How did you do a container-mapped network with docker compose? |
Curious if there is an expected time frame for this fix? |
This would be helpful, I am running several services on different ports but I want groups on the same IP. I have a macvlan setup and have setup a container with 1 ip and would like other containers to use the container options to use that same IP address with different ports. |
Reproduced on 1.23.2 |
@immortalt Can you please tell us How did you do a container-mapped network with docker compose? I have the same problem on clean compose. BTW, seems this issue is not for Portainer itself, but for Docker/Compose stack. |
@viktorkho
This creates the container as desired and then I can restart the container (if needed) in portainer. Still not ideal as I have to treat that container with care; I haven't attempted to recreate the container in portainer. But this approach has been getting me by from a functional POV here. |
Reproduced on the development branch. Closing as this will be addressed via #3964 in v2.0 Note you now get the error: |
@itsconquest is this fixed on a branch or something, still am getting the error and I would really like to not have to deploy the container via the command line as suggested above 😢 |
@duhruh a fix is currently merged in the develop branch pending release in v2.0 of Portainer |
Bug description
When recreating a container that was previously on the bridge with mapped ports and changing the network to container: the following error shows:
"conflicting options: port exposing and the container type network mode"
Expected behavior
The container to have been recreated sharing the network stack of the other container specified.
Steps to reproduce the issue:
Steps to reproduce the behavior:
Technical details:
docker run -p 9000:9000 portainer/portainer
):docker run --restart always -d -p 9000:9000 -v /mnt/path/portainer/:/data -v /var/run/docker.sock:/var/run/docker.sock --name portainer portainer/portainer:latest
Additional context
I've made sure in the UI at least that any mention of port exposing or port mapping is off.
The text was updated successfully, but these errors were encountered: