跳到主要内容

Push image to sigma

Push single image to sigma

docker pull redis:7
docker tag redis:7 127.0.0.1:3000/library/redis:7
docker push 127.0.0.1:3000/library/redis:7

Push multiarch image to sigma

Create 'buildkit.toml' with content:

[registry."10.3.201.221:3000"] # replace it with your host ip
http = true

Create buildx instance:

docker buildx create --use --config ./buildkit.toml

Create Dockerfile with content:

FROM alpine:3.18

Push multiarch image to sigma:

docker buildx build --platform linux/amd64,linux/arm64 --tag 10.3.201.221:3000/library/alpine:3.18.0 --file alpine.Dockerfile --push .