MrDarnell
V2EX  ›  Docker

现在如何在 ubuntu 上安装 docker

  •  
  •   MrDarnell · Jun 21, 2024 · 3179 views
    This topic created in 867 days ago, the information mentioned may be changed or developed.

    目前碰到的问题是可以找到大量的仓库镜像的代理方案,但是我现在新机器想安装 docker,官方的安装脚本已经无法运行了,一直是超时,

    求解决方案

    我找到方案了:

    12 replies  •  2024-06-24 16:33:21 +08:00
    body007
    body007
    Jun 21, 2024
    1
    # 下载安装脚本并在脚本添加代理
    curlp -s https://get.docker.com | \
    sed '3i export http_proxy=http://proxy.top:1081\nexport https_proxy=http://proxy.top:1081' > get-docker.sh
    # 开始安装
    sudo sh get-docker.sh

    这个脚本我在 Debian 、Ubuntu 、WSL 里面都能成功,脚本里面自动识别安装环境。
    ThirdFlame
    ThirdFlame
    Jun 21, 2024
    2
    我也一直用 https://get.docker.com 这个
    vkillwucy
    vkillwucy
    Jun 21, 2024 via Android
    3
    apt install docker-compose 就给把 docker 一并装了😂
    hahasong
    hahasong
    Jun 21, 2024
    4
    @vkillwucy #3 apt 的版本超级旧。暂时只能用中科大的源装,官方域名被 dns 污染了
    Showfom
    Showfom
    PRO
    Jun 21, 2024
    7
    参考官方的教程,添加 PGP Key 和源即可,国内的机器有一大堆源可以用

    https://u.sb/debian-install-docker/
    Showfom
    Showfom
    PRO
    Jun 21, 2024
    8
    @Showfom #7 更正:GPG key
    lxzxl
    lxzxl
    Jun 21, 2024
    9
    用 containerd + nerdctl 吧,github 上下载,直接 scp 上去解压就好了
    YsHaNg
    YsHaNg
    Jun 21, 2024 via iPhone
    10
    莫名其妙的点进来 你们真就觉得说中文的都住一块地方吗
    MrDarnell
    MrDarnell
    OP
    Jun 24, 2024
    11
    @YsHaNg 您住哪国?
    YsHaNg
    YsHaNg
    Jun 24, 2024
    12
    @MrDarnell 欧洲
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1361 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 21:59 · PVG 05:59 · LAX 13:59 · JFK 16:59
    ♥ Do have faith in what you're doing.