跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[程序员] docker daemon 代理 vs 自建镜像站

发表于

我自己一直都是用以下方式给 docker daemon 加代理:假如本地 http 代理地址是 127.0.0.1:1082 ,则修改文件 /etc/systemd/system/multi-user.target.wants/docker.service (不同系统可能位置不一样):

...
[Service]
Type=notify
# 注意下面两行
Environment="HTTP_PROXY=http://127.0.0.1:1082"
Environment="HTTPS_PROXY=http://127.0.0.1:1082"
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
ExecReload=/bin/kill -s HUP $MAINPID

...

这样用了很久一直没什么问题,因此对镜像站也没什么需求。但最近看到好多自建 docker 镜像站的帖子,却少有看到推荐这个方法的。比较好奇有什么场景是 docker daemon proxy 所无法解决的吗?

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.