佬们docker镜像怎么加速啊

西安服务器,连不到ghcr
root@vm:~# docker pull ghcr.io/katelya77/katelyatv:latest Error response from daemon: Get "https://ghcr.io/v2/": dial tcp: lookup ghcr.io on [::1]:53: read udp [::1]:58854->[::1]:53: read: connection refused

root@vm:~# docker compose -f docker-compose.kvrocks.yml up -d
WARN[0000] /root/docker-compose.kvrocks.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Running 2/2
 ! kvrocks         Interrupted                                                       0.0s 
 ✘ katelyatv Error Get "https://ghcr.io/v2/": dial tcp: lookup g...                  0.0s 
Error response from daemon: Get "https://ghcr.io/v2/": dial tcp: lookup ghcr.io on [::1]:53: read udp [::1]:47642->[::1]:53: read: connection refused

难受啊

9 个赞

w? 编辑配置文件 设置镜像仓库或代理的喵~(逃

官方文档喵~

Daemon proxy configuration | Docker Docs

省流

vi /etc/docker/daemon.json

{
  "proxies": {
    "http-proxy": "http://proxy.example.com:3128",
    "https-proxy": "https://proxy.example.com:3129",
    "no-proxy": "*.test.example.com,.example.org,127.0.0.0/8"
  }
}
9 个赞

没有代理喵~

2 个赞

compose文件中,把ghcr.io 替换成ghcr.nju.edu.cn 试试

3 个赞

上面这个是宝塔的内置代理
下面的是我自己瞎搞的,下手轻点()

4 个赞

w? 那需要镜像仓库的喵~(瘫

看楼上两个佬的docker代理

永久

vi /etc/docker/daemon.json

 {   
    "registry-mirrors": [       
     "代理网址1",
     "代理网址2"
  ]  
 }

或者compose的image内容前面加上镜像地址呢(瘫

image: registry.cn.aliyuncs.com/library/nginx:latest

1 个赞
WARN[0000] /root/docker-compose.kvrocks.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Running 2/2
 ! katelyatv     Interrupted                                                         0.0s 
 ✘ kvrocks Error Get "https://docker.1ms.run/v2/": dial tcp: looku...                0.0s 
Error response from daemon: Get "https://docker.1ms.run/v2/": dial tcp: lookup docker.1ms.run on [::1]:53: read udp [::1]:38759->[::1]:53: read: connection refused

要死了喵

没有特别好用的镜像源 我也是换了很多 有代理最好还是用代理

1 个赞

只有clash的订阅了 :smiling_face_with_tear:

w?! clash也是可以的喵~

1 个赞

喵?
可以吗

可以用ssh连接使用本地代理

1 个赞

ww 可以的呢

ssh使用本地代理/linux安装clash都是可以的喵~

上面问题没有你的yml猫不知道呢(瘫

本地代理看这个帖子喵~

https://linux.do/t/topic/942421?u=pluto233

1 个赞

现在发啦

version: '3.8'

services:
  # KatelyaTV 应用服务
  katelyatv:
    image: docker.1ms.run/ghcr.io/katelya77/katelyatv:latest
    ports:
      - "3090:3000"
    environment:
      # 数据库配置 - 使用 Kvrocks
      NEXT_PUBLIC_STORAGE_TYPE: kvrocks
      KVROCKS_URL: redis://kvrocks:6666
      KVROCKS_PASSWORD: ${KVROCKS_PASSWORD:-}
      KVROCKS_DATABASE: 0

      # 管理员账号配置(必填)
      USERNAME: ${USERNAME:-admin}
      PASSWORD: ${PASSWORD}

      # 站点配置
      NEXT_PUBLIC_ENABLE_REGISTER: ${NEXT_PUBLIC_ENABLE_REGISTER:-true}

      # 其他必要的环境变量
      NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
      NEXTAUTH_URL: ${NEXTAUTH_URL:-http://localhost:3000}
    depends_on:
      - kvrocks
    restart: unless-stopped
    networks:
      - katelyatv-network

  # Kvrocks 数据库服务
  kvrocks:
    image: docker.1ms.run/apache/kvrocks:latest
    ports:
      - "6666:6666"
    environment:
      # Kvrocks 配置
      KVROCKS_BIND: 0.0.0.0
      KVROCKS_PORT: 6666
      KVROCKS_DIR: /var/lib/kvrocks/data
      KVROCKS_LOG_LEVEL: info
    volumes:
      # 持久化数据存储
      - kvrocks-data:/var/lib/kvrocks/data
      # 挂载配置文件
      - ./docker/kvrocks/kvrocks.conf:/etc/kvrocks/kvrocks.conf:ro
    restart: unless-stopped
    networks:
      - katelyatv-network
    healthcheck:
      test: ["CMD", "redis-cli", "-h", "localhost", "-p", "6666", "ping"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 30s

volumes:
  # Kvrocks 数据卷
  kvrocks-data:
    driver: local

networks:
  katelyatv-network:
    driver: bridge
                                                                       

ww 看起来镜像的问题喵~ 还是建议走代理呢(瘫
警告是 version: '3.8' 的问题

要镜像的话 先ping下看看哪个能用呢(瘫

1 个赞

可以吧3.8注释掉嘛

ww 应该是可以的呢(瘫

1 个赞
root@vm:~# docker compose -f docker-compose.kvrocks.yml up -d
[+] Running 2/2
 ✘ katelyatv Error Get "https://ghcr.io/v2/": dial tcp: lookup g...                  0.0s 
 ! kvrocks         Interrupted                                                       0.0s 
Error response from daemon: Get "https://ghcr.io/v2/": dial tcp: lookup ghcr.io on [::1]:53: read udp [::1]:39442->[::1]:53: read: connection refused

(瘫

OvO 警告和错误不是一个问题的喵~ 你这还是拉不下镜像呢(瘫

OvO 你先拉下镜像看看的喵~

docker pull docker.1ms.run/katelya77/katelyatv:latest
1 个赞

这个镜像没有喵(3ms搜的)
但是

oot@vm:~# docker pull docker.1ms.run/katelya77/katelyatv:latest
Error response from daemon: Get "https://docker.1ms.run/v2/": dial tcp: lookup docker.1ms.run on [::1]:53: read udp [::1]:47908->[::1]:53: read: connection refused
root@vm:~#