Skip to content

Lost connection to docker socket #84

@tamimology

Description

@tamimology

After the recent update on 25/9, the container lost connection to the docker sock. I tried using the volume mount and the proxy socket, but none worked.
Previously, I used to have it running using the socket proxy

Below is the docker-compose and log using the volume mounting /var/run/docker.sock

docker-compose

  webtty:
    container_name: container-webtty
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - 8818:8080
    image: 'wrfly/container-web-tty:latest'

LOGS

ime="2023-10-01T09:43:54Z" level=info msg="Docker connecting to unix:///var/run/docker.sock"
time="2023-10-01T09:43:54Z" level=info msg="New docker client: API [1.41]"
time="2023-10-01T09:43:54Z" level=info msg="Warm up containers info..."
time="2023-10-01T09:43:54Z" level=info msg="Server running at http://0.0.0.0:8080/"
time="2023-10-01T09:43:54Z" level=error msg="list containers eror: Error response from daemon: client version 1.43 is too new. Maximum supported API version is 1.41"
time="2023-10-01T09:43:54Z" level=error msg="docker cli watch events error: Error response from daemon: client version 1.43 is too new. Maximum supported API version is 1.41"
time="2023-10-01T09:43:54Z" level=fatal msg="lost connection to docker daemon"
time="2023-10-01T09:43:59Z" level=info msg="Docker connecting to unix:///var/run/docker.sock"
time="2023-10-01T09:43:59Z" level=info msg="New docker client: API [1.41]"
time="2023-10-01T09:43:59Z" level=info msg="Warm up containers info..."
time="2023-10-01T09:43:59Z" level=info msg="Server running at http://0.0.0.0:8080/"
time="2023-10-01T09:43:59Z" level=error msg="list containers eror: Error response from daemon: client version 1.43 is too new. Maximum supported API version is 1.41"
time="2023-10-01T09:43:59Z" level=error msg="docker cli watch events error: Error response from daemon: client version 1.43 is too new. Maximum supported API version is 1.41"
time="2023-10-01T09:43:59Z" level=fatal msg="lost connection to docker daemon"
time="2023-10-01T09:44:02Z" level=info msg="Docker connecting to unix:///var/run/docker.sock"
time="2023-10-01T09:44:02Z" level=info msg="New docker client: API [1.41]"

Below is the docker-compose and log using the socket proxy connection, which has been working fine for more than a year, until the latest update on 25/9

docker-compose

  webtty:
    container_name: container-webtty
    restart: unless-stopped
    environment:
      - DOCKER_HOST=192.168.1.10:2375
    ports:
      - 8818:8080
    image: 'wrfly/container-web-tty:latest'

LOGS

time="2023-10-01T10:53:45Z" level=info msg="Docker connecting to tcp://192.168.1.10:2375"
time="2023-10-01T10:53:45Z" level=error msg="create new docker client error: unable to parse docker host `192.168.1.10:2375`"
time="2023-10-01T10:53:45Z" level=fatal msg="Create backend client error: unable to parse docker host `192.168.1.10:2375`"
time="2023-10-01T10:53:49Z" level=info msg="Docker connecting to tcp://192.168.1.10:2375"
time="2023-10-01T10:53:49Z" level=error msg="create new docker client error: unable to parse docker host `192.168.1.10:2375`"
time="2023-10-01T10:53:49Z" level=fatal msg="Create backend client error: unable to parse docker host `192.168.1.10:2375`"
time="2023-10-01T10:53:52Z" level=info msg="Docker connecting to tcp://192.168.1.10:2375"
time="2023-10-01T10:53:52Z" level=error msg="create new docker client error: unable to parse docker host `192.168.1.10:2375`"
time="2023-10-01T10:53:52Z" level=fatal msg="Create backend client error: unable to parse docker host `192.168.1.10:2375`"
time="2023-10-01T10:53:56Z" level=info msg="Docker connecting to tcp://192.168.1.10:2375"
time="2023-10-01T10:53:56Z" level=error msg="create new docker client error: unable to parse docker host `192.168.1.10:2375`"
time="2023-10-01T10:53:56Z" level=fatal msg="Create backend client error: unable to parse docker host `192.168.1.10:2375`"
time="2023-10-01T10:53:59Z" level=info msg="Docker connecting to tcp://192.168.1.10:2375"
time="2023-10-01T10:53:59Z" level=error msg="create new docker client error: unable to parse docker host `192.168.1.10:2375`"
time="2023-10-01T10:53:59Z" level=fatal msg="Create backend client error: unable to parse docker host `192.168.1.10:2375`"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions