Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MLSci/cd34cf214386ca096de41409ff8072e8 to your computer and use it in GitHub Desktop.
Save MLSci/cd34cf214386ca096de41409ff8072e8 to your computer and use it in GitHub Desktop.

When running docker-compose, an error "conflicting options: port publishing and the container type network mode"

The issue is caused by it attempting to map a container port to a host port so that it can connect. Unfortunately, Docker doesn't support port mapping on containers launched in the network stack sharing mode (i.e. the ones using --network container: option). In order to achieve the desired effect the port mapping must be specified on the container whose network stack is being shared (the "Server" container in the description above) instead.

Solution: When your qbittorrent service uses the network namespace of the gluetan service, the owner of the network namespace is gluetan. As such, ports must be published on the gluetan service, no on the qbittorrent service.

TLS handshake timeout near finish of composing

Caused by the NordVPN still connected.

Solution: nordvpn disconnect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment