Skip to content

Network is unreachable error for all docker commands #12

Closed

Description

@mgartner

Expected behavior

Docker commands (e.g. docker images, docker ps) should be working as expected.

Actual behavior

Docker commands error due to network issues.

$ docker images

An error occurred trying to connect: Get https://192.168.59.103:2376/v1.24/images/json: dial tcp 192.168.59.103:2376: getsockopt: network is unreachable

$ docker ps

An error occurred trying to connect: Get https://192.168.59.103:2376/v1.24/containers/json: dial tcp 192.168.59.103:2376: getsockopt: network is unreachable

Information

Diagnostic ID: B05ACE3C-2617-4A74-81F9-62001BFEE9BE
Docker for Mac: 1.12.0 (Build 10871)
macOS: Version 10.11.4 (Build 15E65)
[OK] docker-cli
[OK] app
[OK] moby-syslog
[OK] disk
[OK] virtualization
[OK] system
[OK] menubar
[OK] osxfs
[OK] db
[OK] slirp
[OK] moby-console
[OK] logs
[OK] vmnetd
[OK] env
[OK] moby
[OK] driver.amd64-linux

Steps to reproduce

  1. Install docker for mac.
  2. Run any docker commands.

Activity

  1. FrenchBen commented on Jul 29, 2016

    @FrenchBen

    Out of curiosity what is the output of:
    env | grep -i "docker"
    and
    alias | grep -i "docker"

  2. mgartner commented on Jul 29, 2016

    @mgartner
    Author
    DOCKER_CERT_PATH=/Users/marcus/.boot2docker/certs/boot2docker-vm
    DOCKER_HOST=tcp://192.168.59.103:2376
    DOCKER_TLS_VERIFY=1
    

    alias | grep -i "docker" outputs nothing

  3. mgartner commented on Jul 29, 2016

    @mgartner
    Author

    Fixed this by unsetting these environment variables.

    I think I added these when using docker on virtualbox. I'd recommend documenting this (or automating their removal) for anyone who switches to docker for mac.

  4. FrenchBen commented on Jul 29, 2016

    @FrenchBen

    That's exactly what I had in mind - the big tell-tell was the IP you showed.
    Happy to hear this was resolved.

  5. docker-robott commented on Jun 16, 2020

    @docker-robott
    Collaborator

    Closed issues are locked after 30 days of inactivity.
    This helps our team focus on active issues.

    If you have found a problem that seems similar to this, please open a new issue.

    Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
    /lifecycle locked

  6. locked and limited conversation to collaborators on Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions