Skip to content
Advertisement

“Default” docker machine does not exist on Linux when Docker daemon is running

I’m running Docker on Linux Manjaro. No problem with running and using the service:

[luqo33@ltarasiewicz-pc containers]$ systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2016-12-23 20:46:31 CET; 26s ago

However, docker-machine ls will always show this:

[luqo33@ltarasiewicz-pc containers]$ docker-machine ls
NAME   ACTIVE   DRIVER   STATE   URL   SWARM   DOCKER   ERRORS

and

[luqo33@ltarasiewicz-pc containers]$ docker-machine env default
Host does not exist: "default"

Why isn’t there the ‘default’ machine available?

Advertisement

Answer

Since you have installed docker on Linux, you can access it directly on the host with docker ps or any other docker commands. You will need to either run these commands as root (sudo) or add your user to the docker group for access to the docker socket.

Docker machine is used to quickly spin up cloud and virtual machine instances of docker, so it’s not needed when you have installed it directly on the Linux host.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement