其他分享
首页 > 其他分享> > buildkit部署

buildkit部署

作者:互联网

一、由于containerd无法构建docker镜像,所以需要依赖buildkit来构建镜像,buildkit组成:

二、部署

export BUILDKIT_HOME=/usr/local/buildkit
export PTAH=$BUILDKIT_HOME/bin:PATH

三、使用systemd管理buildkit

[Unit]
Description=BuildKit
Requires=buildkit.socket
After=buildkit.socket
Documentation=https://github.com/moby/buildkit

[Service]
Type=notify
ExecStart=/usr/local/buildkit/bin/buildkitd --oci-worker=false --containerd-worker=true

[Install]
WantedBy=multi-user.target
[Unit]
Description=BuildKit
Documentation=https://github.com/moby/buildkit

[Socket]
ListenStream=%t/buildkit/buildkitd.sock
SocketMode=0660

[Install]
WantedBy=sockets.target

标签:socket,部署,containerd,--,buildkit,buildkitd,服务端
来源: https://www.cnblogs.com/gdcplasf/p/16438612.html