玩客云安装 docker


前置要求 玩客云 一个百元级的微型服务器

换源

过程参考Ubuntu or Debian 换源
镜像源使用

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free

安装

  1. 使用docker安装脚本(下面) 或使用命令 sudo apt install docker.io
    curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun 
    sh get-docker.sh --mirror Aliyun
    然后使用 docker -v 检查一下版本成功的效果

2.docker 换源

  1. 安装可视面板
    docker run --restart always --name fast -p 8081:8081 -d -v /var/run/docker.sock:/var/run/docker.sock wangbinxingkong/fast
  2. 安装完成后在浏览器访问 http://服务器IP地址或域名:8081
  3. 首次登录需要注册,注册成功后即可正常使用。

实例

下面提供一些能在玩客云上跑的镜像

Alist

docker run -d \
 --restart=always \
 -v /alist/:/opt/alist/data \
 -v /file:/home \
 -p 5244:5244 \
 -e PUID=0 \
 -e PGID=0 \
 -e UMASK=022 \
 --name="alist" \
 xhofe/alist:latest

如果本文帮助到了你,帮我点个广告可以咩(o′┏▽┓`o)


文章作者: Anubis
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Anubis !
评论
  目录