Guest User

Untitled

a guest
Jun 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Running a multi-stage build on Fedora
  2. -------------------------------------
  3.  
  4. Running a multi-stage build on Fedora is possible without 'installing' Docker CE
  5.  
  6. ```
  7. FROM fedora:27 AS base
  8. FROM base AS test
  9. ```
  10.  
  11. ```
  12. $ docker run -d --rm --privileged -p 23751:2375 --name dind docker:stable-dind --storage-driver overlay2
  13. $ docker --host=:23751 build -t multi-stage .
  14. ```
  15.  
  16. To get the image locally, you can use:
  17.  
  18. ```
  19. $ docker --host=:23751 save -o ./out.tar multi-stage
  20. $ docker load -i ./out.tar
  21. ```
Add Comment
Please, Sign In to add comment