docker exec -t -i b5ae54373681 /bin/bash
docker cp b5ae54373681:app ~/app-b5ae54373681
scp -r [email protected]:/home/vagrant/app-b5ae54373681 ~/app-b5ae54373681
# Get the CID of the failed build.
docker ps -a
# Get the SHA of the failed layer.
docker commit b5ae54373681
# Explore the container with bash.
docker run -it 1f14a0f18a46 /bin/bash
docker rmi $(docker images -f "dangling=true" -q)