The multi-stage build functionality is currently in the version 17.05 of Docker.
Download Developer Build of Docker
Use the command below to download and use the developer build of 17.05.
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [email protected] "curl -L assets.joinscrapbook.com/docker/dockerd-17-05 -o dockerd && mv dockerd /usr/bin/dockerd && chmod +x /usr/bin/dockerd && systemctl restart docker"
Check it successfully upgraded using
You can now use the multi-stage build functionality. Note: This is still in beta and not recommended for production.