readme: update installation instructions

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
pull/613/head
Tonis Tiigi 4 years ago
parent 908a856079
commit 9bc9291fc9

@ -45,12 +45,11 @@ Key features:
# Installing # Installing
Using `buildx` as a docker CLI plugin requires using Docker 19.03. A limited set of functionality works with older versions of Docker when invoking the binary directly. Using `buildx` as a docker CLI plugin requires using Docker 19.03 or newer. A limited set of functionality works with older versions of Docker when invoking the binary directly.
### Docker CE ### Docker
`buildx` comes bundled with Docker CE starting with 19.03, but requires experimental mode to be enabled on the Docker CLI. `buildx` comes bundled with Docker Desktop and in latest Docker CE packages.
To enable it, `"experimental": "enabled"` can be added to the CLI configuration file `~/.docker/config.json`. An alternative is to set the `DOCKER_CLI_EXPERIMENTAL=enabled` environment variable.
### Binary release ### Binary release
@ -63,13 +62,8 @@ chmod a+x ~/.docker/cli-plugins/docker-buildx
# Building # Building
### with Docker 18.09+
```
$ git clone git://github.com/docker/buildx && cd buildx
$ make install
```
### with buildx or Docker 19.03 ### with buildx or Docker 19.03+
``` ```
$ export DOCKER_BUILDKIT=1 $ export DOCKER_BUILDKIT=1
$ docker build --platform=local -o . git://github.com/docker/buildx $ docker build --platform=local -o . git://github.com/docker/buildx
@ -77,6 +71,12 @@ $ mkdir -p ~/.docker/cli-plugins
$ mv buildx ~/.docker/cli-plugins/docker-buildx $ mv buildx ~/.docker/cli-plugins/docker-buildx
``` ```
### with Docker 18.09+
```
$ git clone git://github.com/docker/buildx && cd buildx
$ make install
```
# Getting started # Getting started
## Building with buildx ## Building with buildx

Loading…
Cancel
Save