全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 613|回复: 9

docker安装失败,是什么问题?

[复制链接]
发表于 2023-2-3 16:24:20 | 显示全部楼层 |阅读模式
  1. You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.
  2. Requirement already satisfied: docker in ./pyenv/lib/python3.7/site-packages (4.2.0)
  3. Requirement already satisfied: six>=1.4.0 in ./pyenv/lib/python3.7/site-packages (from docker) (1.14.0)
  4. Requirement already satisfied: requests!=2.18.0,>=2.14.2 in ./pyenv/lib/python3.7/site-packages (from docker) (2.22.0)
  5. Requirement already satisfied: websocket-client>=0.32.0 in ./pyenv/lib/python3.7/site-packages (from docker) (0.57.0)
  6. Requirement already satisfied: certifi>=2017.4.17 in ./pyenv/lib/python3.7/site-packages (from requests!=2.18.0,>=2.14.2->docker) (2019.11.28)
  7. Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./pyenv/lib/python3.7/site-packages (from requests!=2.18.0,>=2.14.2->docker) (3.0.4)
  8. Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./pyenv/lib/python3.7/site-packages (from requests!=2.18.0,>=2.14.2->docker) (1.25.8)
  9. Requirement already satisfied: idna<2.9,>=2.5 in ./pyenv/lib/python3.7/site-packages (from requests!=2.18.0,>=2.14.2->docker) (2.8)
  10. WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
  11. WARNING: You are using pip version 21.2.4; however, version 23.0 is available.
  12. You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.
  13. /bin/systemctl
  14. Warning: Stopping docker.service, but it can still be activated by:
  15. docker.socket
  16. Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
  17. Executing: /lib/systemd/systemd-sysv-install enable docker
  18. |-Successify --- 命令已执行! ---
复制代码
发表于 2023-2-3 16:31:44 | 显示全部楼层
You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.
发表于 2023-2-3 16:48:41 | 显示全部楼层
提供的输出看起来安装成功,而且是安装成功后你又执行安装了一次
 楼主| 发表于 2023-2-3 16:49:47 | 显示全部楼层
Titan 发表于 2023-2-3 16:48
提供的输出看起来安装成功,而且是安装成功后你又执行安装了一次

是这样,安装成功之后,宝塔后台说我没有安装,又让我安装

点评

宝塔 那个比较坑 有时候你安装完成 都跑着dock了 他还检测不出 你没安装dock  发表于 2023-2-3 16:53
发表于 2023-2-3 16:54:48 | 显示全部楼层
ningfeng.im 发表于 2023-2-3 16:49
是这样,安装成功之后,宝塔后台说我没有安装,又让我安装

宝塔检测不了你本地的安装,官方有说过必须要干净的
 楼主| 发表于 2023-2-3 17:14:56 | 显示全部楼层
eate 发表于 2023-2-3 16:54
宝塔检测不了你本地的安装,官方有说过必须要干净的

有手动安装docker的教程吗
发表于 2023-2-3 17:18:47 | 显示全部楼层
ningfeng.im 发表于 2023-2-3 17:14
有手动安装docker的教程吗

curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
 楼主| 发表于 2023-2-3 17:24:37 | 显示全部楼层
class 发表于 2023-2-3 17:18
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
  1. root@104-168-12-113-host:~# curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
  2. # Executing docker install script, commit: c044d7d31137b4eec96731dfb3830649ca548745
  3. + sh -c 'apt-get update -qq >/dev/null'
  4. + sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null'
  5. + sh -c 'mkdir -p /etc/apt/keyrings && chmod -R 0755 /etc/apt/keyrings'
  6. + sh -c 'curl -fsSL "https://download.docker.com/linux/debian/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg'
  7. + sh -c 'chmod a+r /etc/apt/keyrings/docker.gpg'
  8. + sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian bullseye stable" > /etc/apt/sources.list.d/docker.list'
  9. + sh -c 'apt-get update -qq >/dev/null'
  10. + sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-scan-plugin docker-buildx-plugin >/dev/null'
  11. + version_gte 20.10
  12. + '[' -z '' ']'
  13. + return 0
  14. + sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce-rootless-extras >/dev/null'
  15. + sh -c 'docker version'
  16. Client: Docker Engine - Community
  17. Version:           23.0.0
  18. API version:       1.42
  19. Go version:        go1.19.5
  20. Git commit:        e92dd87
  21. Built:             Wed Feb  1 17:43:17 2023
  22. OS/Arch:           linux/amd64
  23. Context:           default

  24. Server: Docker Engine - Community
  25. Engine:
  26.   Version:          23.0.0
  27.   API version:      1.42 (minimum version 1.12)
  28.   Go version:       go1.19.5
  29.   Git commit:       d7573ab
  30.   Built:            Wed Feb  1 17:43:17 2023
  31.   OS/Arch:          linux/amd64
  32.   Experimental:     false
  33. containerd:
  34.   Version:          1.6.16
  35.   GitCommit:        31aa4358a36870b21a992d3ad2bef29e1d693bec
  36. runc:
  37.   Version:          1.1.4
  38.   GitCommit:        v1.1.4-0-g5fd4c4d
  39. docker-init:
  40.   Version:          0.19.0
  41.   GitCommit:        de40ad0

  42. ================================================================================

  43. To run Docker as a non-privileged user, consider setting up the
  44. Docker daemon in rootless mode for your user:

  45.     dockerd-rootless-setuptool.sh install

  46. Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.


  47. To run the Docker daemon as a fully privileged service, but granting non-root
  48. users access, refer to https://docs.docker.com/go/daemon-access/

  49. WARNING: Access to the remote API on a privileged Docker daemon is equivalent
  50.          to root access on the host. Refer to the 'Docker daemon attack surface'
  51.          documentation for details: https://docs.docker.com/go/attack-surface/

  52. ================================================================================
复制代码

貌似不能用root用户,得创建个其他用户来运行
发表于 2023-2-3 17:36:07 | 显示全部楼层
ningfeng.im 发表于 2023-2-3 17:24
貌似不能用root用户,得创建个其他用户来运行

可以, 这应该安装上了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-6-2 13:12 , Processed in 0.062815 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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