Search code examples
dockerdocker-machine

docker ps Invalid bind address format:


When I execute the command I get:

$ docker ps
Invalid bind address format: "tcp://192.168.99.100:2376"

$docker-machine rm -f default
$ docker-machine create -d virtualbox default
$ (docker-machine env default)

And now I can't list my docker images and containers. What I can do to fix it?


Solution

  • Are the quotes part of your $DOCKER_HOST value ? If yes, that may be a problem and you could try to export DOCKER_HOST without quotes and check if it works. Posted by – Christian W Oct 2 '17 at 14:56

    This was the problem in my case:

    export DOCKER_HOST="tcp://192.xx.xx.xx:2376"

    Supposed to be:

    export DOCKER_HOST=tcp://192.xx.xx.xx:2376