Ubuntu on Docker Mount Trouble Shooting

Source: Internet
Author: User

(My environment is Mint7.1, equivalent to Ubuntu14.04)

1, first, according to the installation instructions on the docker.com to install Docker, here is not repeated, reference:

https://docs.docker.com/installation/ubuntulinux/

2, perform

$ docker Version

You may encounter the following error:
FATA[0000] Get http:///var/run/docker.sock/v1.17/version:dial Unix/var/run/docker.sock:permission denied. is trying to connect to a tls-enabled daemon without TLS?

This may be due to the fact that the current user has not been added to the Docker group to perform

$ sudo gpasswd-a ${user} docker

Restart the machine to check if the current user is in the Docker group

$ groups

Perform a command restart service

$ sudo service Docker.io restart

Reference

http://stackoverflow.com/questions/27782595/starting-docker-containers-from-php

http://dev-maziarz.blogspot.com/

3, execute again

$ docker Version

You may encounter the following error:
FATA[0000] Cannot connect to the Docker daemon. Is ' docker-d ' running on this host?

This may be caused by the absence of the installation of AppArmor, which performs

Apt-get Install AppArmor

Restart your computer to perform:

$ PS-EF | grep Docker

Root 4577 1 0 21:44? 00:00:00/usr/bin/docker-d

Alex 4608 2574 0 21:45 pts/0 00:00:00 grep--color=auto Docker

The above output indicates that the installation was successful.

Reference:

http://www.tekhead.org/blog/2014/09/installing-docker-on-ubuntu-quick-fix/

https://github.com/docker/docker/issues/9745

Ubuntu on Docker Mount Trouble Shooting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.