Categories: Uncategorized

Docker img ipv6 problem

On my host the ipv6 is disabled. I had to start a docker image, which would like to use ipv6.

This conflict provides this error message:

Error response from daemon: driver failed programming external connectivity on endpoint CONTAINER_NAME(HASH): Error starting userland proxy: listen tcp6 [::]:PORT_NUMBER: socket: address family not supported by protocol

The resolution, to define the IP address in port mapping (for DHCP, with global definition):

docker run -p 0.0.0.0:HOST_PORT:CONTAINER_PORT

Or in docker-compose.yml like this:

version: "3.9"
services:
  SERVICE_NAME:
    image: IMG
    container_name: CONTAINER_NAME
    ports:
      - "0.0.0.0:HOST_PORT:CONTAINER_PORT"
ronhks

Recent Posts

Mac TimeMachine drive on Samba share

First, create a Samba share on the easiest way. For example, mine: [macbook-pro-14] path =…

2 years ago

oh-my-zsh p10k git branch name shortened

I use this and I experiened like this: The branch name is shortened and can't…

2 years ago

Intellij IDEA Golang own package problem

I really like IDEA for developing. I worked on a golang project and I organised…

3 years ago

Run MiniDLNA from docker

For reusage: docker run -d \-p 8200:8200 \--restart=on-failure:3 \--name minidlna \-v /opt/minidlna/cache:/minidlna/cache \-v /mnt/data/series:/media/series \-v…

3 years ago

Gentoo USB serial passthrough KVM

I have a Conbee II Zigbee receiver. After a restart the USB passthrought stopped working…

3 years ago

ConBee 2 firmware upgrade on Ubuntu

Requirements: Installed Deconz software. Downloadable, here: http://deconz.dresden-elektronik.de/ubuntu/stable/ Download the lates firmware from here: http://deconz.dresden-elektronik.de/deconz-firmware/?C=M;O=D (deCONZ_ConBeeII_0x)…

4 years ago

This website uses cookies.