拙网论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 213|回复: 0

Ubuntu 14使用

[复制链接]

949

主题

1001

帖子

3736

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3736
发表于 2019-9-27 14:30:23 | 显示全部楼层 |阅读模式
Docker Version查看:
  1. lishimin@tang:~$ docker version
  2. Client:
  3. Version:           18.06.3-ce
  4. API version:       1.38
  5. Go version:        go1.10.3
  6. Git commit:        d7080c1
  7. Built:             Wed Feb 20 02:27:13 2019
  8. OS/Arch:           linux/amd64
  9. Experimental:      false

  10. Server:
  11. Engine:
  12.   Version:          18.06.3-ce
  13.   API version:      1.38 (minimum version 1.12)
  14.   Go version:       go1.10.3
  15.   Git commit:       d7080c1
  16.   Built:            Wed Feb 20 02:25:38 2019
  17.   OS/Arch:          linux/amd64
  18.   Experimental:     false
复制代码


问题分析:
Got permission denied while trying to connect to the Docker daemon socket at unix

  1. lishimin@tang:~$ sudo groupadd docker
  2. groupadd: group 'docker' already exists
复制代码
  1. lishimin@tang:~$ newgrp docker
复制代码


安装docke-compose:
  1. root@tang:/home/lishimin# sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-co
  2.   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
  3.                                  Dload  Upload   Total   Spent    Left  Speed
  4. 100   617    0   617    0     0    800      0 --:--:-- --:--:-- --:--:--   800
  5. 100 15.4M  100 15.4M    0     0  21750      0  0:12:23  0:12:23 --:--:-- 19502
  6. root@tang:/home/lishimin# #chmod +x /usr/local/bin/docker-compose
  7. root@tang:/home/lishimin# docker-compose
  8. bash: /usr/local/bin/docker-compose: Permission denied
  9. root@tang:/home/lishimin# sudo chmod +x /usr/local/bin/docker-compose
  10. root@tang:/home/lishimin# docker-compose --version
  11. docker-compose version 1.24.1, build 4667896b
复制代码


有时候需要进入root:
  1. lishimin@tang:~$ su
  2. Password:
  3. su: Authentication failure
  4. lishimin@tang:~$ su
  5. Password:
  6. su: Authentication failure
  7. lishimin@tang:~$ sudo passwd root
  8. Enter new UNIX password:
  9. Retype new UNIX password:
  10. passwd: password updated successfully
  11. lishimin@tang:~$ su
  12. Password:
  13. root@tang:/home/lishimin#
复制代码



查看SSH是否安装及开启,否则无法使用xshell远程连接。
  1. lishimin@tang:~$ sudo service ssh start
  2. start: Job is already running: ssh
复制代码


检查IP地址:
  1. lishimin@tang:~$ ifconfig -a
  2. eth0      Link encap:Ethernet  HWaddr 00:0c:29:05:a5:a3  
  3.           inet addr:192.168.104.120  Bcast:192.168.104.255  Mask:255.255.255.0
  4.           inet6 addr: fe80::20c:29ff:fe05:a5a3/64 Scope:Link
  5.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  6.           RX packets:100633 errors:0 dropped:0 overruns:0 frame:0
  7.           TX packets:1788 errors:0 dropped:0 overruns:0 carrier:0
  8.           collisions:0 txqueuelen:1000
  9.           RX bytes:6992084 (6.9 MB)  TX bytes:123519 (123.5 KB)

  10. lo        Link encap:Local Loopback  
  11.           inet addr:127.0.0.1  Mask:255.0.0.0
  12.           inet6 addr: ::1/128 Scope:Host
  13.           UP LOOPBACK RUNNING  MTU:65536  Metric:1
  14.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  15.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  16.           collisions:0 txqueuelen:1
  17.           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|抱朴守拙BBS

GMT+8, 2025-5-25 20:38 , Processed in 0.195564 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表