|||
1.安装Docker:(U为我的用户名)
[U@U ~]$ sudo apt-get update
[U@U ~]$ sudo apt-get -f install
Do you want to continue? [Y/n] y
[U@U ~]$ sudo apt -get install docker
The following NEW packages will be installed:
docker
0 upgraded, 1 newly installed, 0 to remove and 230 not upgraded.
Need to get 12.2 kB of archives.
After this operation, 65.5 kB of additional disk space will be used.
Get:1 http://mirrors.ustc.edu.cn/ubuntu xenial/universe amd64 docker amd64 1.5-1 [12.2 kB]
Fetched 12.2 kB in 0s (41.1 kB/s)
Selecting previously unselected package docker.
(Reading database ... 897130 files and directories currently installed.)
Preparing to unpack .../docker_1.5-1_amd64.deb ...
Unpacking docker (1.5-1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up docker (1.5-1) ...
[U@U ~]$ docker version
The program 'docker' is currently not installed. You can install it by typing:
sudo apt install docker.io
[U@U ~]$ sudo apt install docker.io
The following additional packages will be installed:
bridge-utils cgroupfs-mount ubuntu-fan
Suggested packages:
aufs-tools btrfs-tools debootstrap docker-doc rinse zfs-fuse | zfsutils
The following NEW packages will be installed:
bridge-utils cgroupfs-mount docker.io ubuntu-fan
0 upgraded, 4 newly installed, 0 to remove and 230 not upgraded.
Need to get 17.1 MB of archives.
After this operation, 90.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
[U@U ~]$ docker version
Client:
Version: 17.03.2-ce
API version: 1.27
Go version: go1.6.2
Git commit: f5ec1e2
Built: Thu Jul 5 23:07:48 2018
OS/Arch: linux/amd64
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.27/version: dial unix /var/run/docker.sock: connect: permission denied
[U@U ~]$ su
Password:
root@U: /home/U# docker version
Client:
Version: 17.03.2-ce
API version: 1.27
Go version: go1.6.2
Git commit: f5ec1e2
Built: Thu Jul 5 23:07:48 2018
OS/Arch: linux/amd64
Server:
Version: 17.03.2-ce
API version: 1.27 (minimum version 1.12)
Go version: go1.6.2
Git commit: f5ec1e2
Built: Thu Jul 5 23:07:48 2018
OS/Arch: linux/amd64
Experimental: false
安装完毕!
2.安装pulsar_docker:
root@U: /home/U# git clone https://github.com/mserylak/pulsar_docker.git
root@U: /home/U# docker build -t pulsar_docker ./pulsar_docker/
Building dependency tree...
Reading state information...
Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2 http://us.archive.ubuntu.com/ubuntu trusty InRelease
Temporary failure resolving 'us.archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu xenial InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Temporary failure resolving 'archive.ubuntu.com'
失败!!
---
6.BUG:
尝试过以下方法:
A:换 source.list:
从 USTC 切换为 Tinghua
B:改变DNS:
将DNS改为 8.8.8.8 等
以上两种方法都不管用!!!
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2025-1-8 20:33
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社