Replies: 1 comment
-
The issue you are experiencing, "Failed recreating container: Create container error: Error response from daemon: conflicting options: hostname and the network mode," occurs because Docker does not allow setting both the hostname and the network mode to "service:container_name". You can resolve this issue by ensuring you do not set both the hostname and the network_mode to "service:container_name" in your Docker Compose file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am new to Docker and Portainer and I am having an issue with my Gluetun stack (Gluetun, NATMAP, Jackett, qBittorrent), I can get it setup and running but if I try to use the Recreate button inside Portainer to rebuild the container I get the following error message.
"Failed recreating container: Create container error: Error response from daemon: conflicting options: hostname and the network mode"
I am lost as to why I get this error as everything in the stack works correctly, the vpn connection and network pass-through all work, the only issue is recreating the container, note that I am creating the stack using Docker Compose, if I try to do it from inside Portainer it throws the above error message but the stack is still created correctly. I have tried removing the hostname from the compose file, and setting one specifically (vpn), I get the same result.
Anyone else had this issue, any advise?
Here is my compose file.
Beta Was this translation helpful? Give feedback.
All reactions