Reputation: 6971
I'm a trying to setup a docker enabled linux VM on azure. I have a VM created with the docker extension by using azure cross platform command line tool. however i have 2 issues right now
docker images
), it returns the following error. FATA[0000] Get http:///var/run/docker.sock/v1.18/images/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
docker --tls images
...something like this). According to their documentation the "azure create docker vm" command will create the certificate for the server to use. How do I connect from a remote on a different machine? where can I find the generated certificate and how to use it for remote access? Upvotes: 2
Views: 545
Reputation: 56
Once the software is installed, you can start using it. However, you may encounter the following two issues the first time you attempt to run docker commands:
docker FATA[0000] Get http: ///var/run/docker.sock/v1.18/images/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
And the other error is:
docker FATA[0000] Get http: ///var/run/docker.sock/v1.18/containers/json: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?
The reason is, you need to start the Docker service first. Moreover, you must run the technology as root, because Docker needs access to some rather sensitive pieces of the system, and interact with the kernel. That's how it works.
systemctl start docker
Now we can go crazy and begin using Docker.
Upvotes: 2