clibing / dockerfile

dockerfile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

buildx

use buildx build platform linux/amd64, linux/arm64/v8, linux/arm/v7, linux/arm/v6.

open buildx

vi ~/.docker/config.json

{ 
    "debug":"true",
    "experimental" : "enabled"
}

or

export DOCKER_CLI_EXPERIMENTAL=enabled

auto-push is currently not implemented for docker driver exec

docker buildx create --use

demo

build alpine

docker buildx build --platform=linux/amd64,linux/arm64/v8,linux/arm/v7,linux/arm/v6 --build-arg ALPINE_VERSION=3.12 -t clibing/alpine:3.12 --push -f alpine/Dockerfile .

other

...

build step

  • alpine

About

dockerfile


Languages

Language:Go 38.3%Language:Shell 32.3%Language:Dockerfile 29.4%