求高手教,docker
Tofloor
poster avatar
书童9527
deepin
2015-04-28 17:23
Author
之前试过下装docker,结果各种问题,官方的用ubuntu的方法不行,用观法debian的方法也不行,老是报错:
FATA[0000] Get http:///var/run/docker.sock/v1.18/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

。网上有提示装什么boot2docker,有点乱,求高手教教怎么装~~谢过!


Reply Favorite View the author
All Replies
hainuo
deepin
2015-05-05 07:10
#1
怎么安装的docker  我怎么提示lxc-docker 查找不到呢?
Reply View the author
lcw0268
deepin
2015-05-05 07:54
#2
sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:dotcloud/lxc-docker
$ sudo apt-get update
$ sudo apt-get install lxc-docker
Reply View the author
Comments
itfan
2015-05-29 23:21
不错
Feng Yu
deepin
2015-05-05 17:23
#3
按照官方ubuntu的安装方法即可,不过docker这玩意依赖apparmor,所以还要先装这个才能运行,否则会报错
Reply View the author
chenzhiwei
deepin
2015-05-05 20:22
#4
  1. curl https://get.docker.com/builds/ | bash
Copy the Code


最新版Docker下载地址: https://get.docker.com/builds/Linux/x86_64/docker-1.6.0
Reply View the author
书童9527
deepin
2015-05-05 22:14
#5
搞定了。多谢各位!
Reply View the author
catbb49294929
deepin
2015-05-18 07:21
#6
怎么搞定的?
Reply View the author
catbb49294929
deepin
2015-05-19 18:02
#7
https://bbs.deepin.org/post/29634
搞定了。多谢各位!

怎么搞定的?
Reply View the author
书童9527
deepin
2015-05-19 19:00
#8

sudo apt-get install docker.io

sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:dotcloud/lxc-docker
$ sudo apt-get update
sudo apt-get install lxc-docker
sudo usermod -aG docker $USER
如果docker -d 出现
WARNING: Your kernel does not support cgroup swap limit. WARNING: Your
kernel does not support swap limit capabilities. Limitation discarded.
    错误,编辑/etc/default/grub,GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
    sudo update-grub

    7.  如果出现apparmor 字样的错误

        sudo apt-get install apparmor
Reply View the author
catbb49294929
deepin
2015-05-29 23:14
#9
本帖最后由 catbb49294929 于 2015-5-29 15:15 编辑
https://bbs.deepin.org/post/29634
sudo apt-get install docker.io

sudo apt-get install software-properties-common

执行这句时:
sudo docker pull ubuntu
报错:
FATA[0000] Post http:///var/run/docker.sock/v1.18/images/create?fromImage=ubuntu%3Alatest: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

这个怎么破?

Reply View the author
Comments
itfan
2015-05-29 23:22
sudo apt-get install apparmor
书童9527
deepin
2015-08-04 17:54
#10
之前的方法太坑了。最后找到了一个比较靠谱的:
1. 添加Docker repository key
sudo sh -c “wget -qO- https://get.docker.io/gpg | apt-key add -“
2. 添加Docker repository,并安装Docker
sudo sh -c “echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list”
sudo apt-get update
sudo apt-get install lxc-docker
3. 检查Docker是否已安装成功
docker version


附上小弟的博客:http://cs229.com/blog/ST9527/201 ... %89%E8%A3%85docker/
Reply View the author
书童9527
deepin
2015-08-04 17:56
#11
https://bbs.deepin.org/post/29634
执行这句时:
sudo docker pull ubuntu
报错:

可能你执行了sudo docker -d的时候用ctrl + C 杀掉了进程,重启下,应该就可以了。。。
Reply View the author
New Thread

Popular Events

More
国际排名
WHLUG