Skip to content

Instantly share code, notes, and snippets.

@gbraad
Last active January 4, 2019 16:28
Show Gist options
  • Save gbraad/ac72c2d62c26cd8a1b935758a0713067 to your computer and use it in GitHub Desktop.
Save gbraad/ac72c2d62c26cd8a1b935758a0713067 to your computer and use it in GitHub Desktop.
Running a multi-stage build on Fedora

Running a multi-stage build on Fedora

Running a multi-stage build on Fedora is possible without 'installing' Docker CE

FROM fedora:27 AS base
FROM base AS test
$ docker run -d --rm --privileged -p 23751:2375 --name dind docker:stable-dind --storage-driver overlay2
$ docker --host=:23751 build -t multi-stage .

To get the image locally, you can use:

$ docker --host=:23751 save -o ./out.tar multi-stage
$ docker load -i ./out.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment