|
Docker Version查看:
- lishimin@tang:~$ docker version
- Client:
- Version: 18.06.3-ce
- API version: 1.38
- Go version: go1.10.3
- Git commit: d7080c1
- Built: Wed Feb 20 02:27:13 2019
- OS/Arch: linux/amd64
- Experimental: false
- Server:
- Engine:
- Version: 18.06.3-ce
- API version: 1.38 (minimum version 1.12)
- Go version: go1.10.3
- Git commit: d7080c1
- Built: Wed Feb 20 02:25:38 2019
- OS/Arch: linux/amd64
- Experimental: false
复制代码
问题分析:
Got permission denied while trying to connect to the Docker daemon socket at unix
- lishimin@tang:~$ sudo groupadd docker
- groupadd: group 'docker' already exists
复制代码- lishimin@tang:~$ newgrp docker
复制代码
安装docke-compose:
- root@tang:/home/lishimin# sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-co
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 617 0 617 0 0 800 0 --:--:-- --:--:-- --:--:-- 800
- 100 15.4M 100 15.4M 0 0 21750 0 0:12:23 0:12:23 --:--:-- 19502
- root@tang:/home/lishimin# #chmod +x /usr/local/bin/docker-compose
- root@tang:/home/lishimin# docker-compose
- bash: /usr/local/bin/docker-compose: Permission denied
- root@tang:/home/lishimin# sudo chmod +x /usr/local/bin/docker-compose
- root@tang:/home/lishimin# docker-compose --version
- docker-compose version 1.24.1, build 4667896b
复制代码
有时候需要进入root:
- lishimin@tang:~$ su
- Password:
- su: Authentication failure
- lishimin@tang:~$ su
- Password:
- su: Authentication failure
- lishimin@tang:~$ sudo passwd root
- Enter new UNIX password:
- Retype new UNIX password:
- passwd: password updated successfully
- lishimin@tang:~$ su
- Password:
- root@tang:/home/lishimin#
复制代码
查看SSH是否安装及开启,否则无法使用xshell远程连接。
- lishimin@tang:~$ sudo service ssh start
- start: Job is already running: ssh
复制代码
检查IP地址:
- lishimin@tang:~$ ifconfig -a
- eth0 Link encap:Ethernet HWaddr 00:0c:29:05:a5:a3
- inet addr:192.168.104.120 Bcast:192.168.104.255 Mask:255.255.255.0
- inet6 addr: fe80::20c:29ff:fe05:a5a3/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:100633 errors:0 dropped:0 overruns:0 frame:0
- TX packets:1788 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:6992084 (6.9 MB) TX bytes:123519 (123.5 KB)
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- inet6 addr: ::1/128 Scope:Host
- UP LOOPBACK RUNNING MTU:65536 Metric:1
- RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1
- RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
复制代码
|
|