java - Docker build hangs during downloads -
mac 10.10.5 here, using docker-machine
create virtualbox host vm local docker. have project builds executable jvm located @ build/libs/myapp-snapshot.jar
. dockerfile
, located in root of project, looks like:
from frolvlad/alpine-oraclejdk8:slim volume /tmp add build/libs/myapp-snapshot.jar myapp.jar run sh -c 'touch /myapp.jar' entrypoint ["java","-jar","/myapp.jar"]
please note, don't wish push images registry, keep/run them locally (for now). when run:
docker build -t myorg/myapp .
i following console output:
myuser@mymachine:~/sandbox/myapp$docker build -t myorg/myapp . sending build context docker daemon 42.69 mb step 1 : frolvlad/alpine-oraclejdk8:slim slim: pulling frolvlad/alpine-oraclejdk8 d0ca440e8637: downloading [=================================================> ] 2.295 mb/2.32 mb 0f86278f6be1: downloading [=================================================> ] 3.149 mb/3.172 mb c704a6161dca: download complete
and command-line hangs after printing "download complete" message. i've waited long 30 minutes (!!!) , nothing happens.
any ideas i'm going awry?
the vm hanging. try following: https://github.com/docker/machine/issues/1819#issuecomment-138981139
docker-machine rm -f default rm -fv ~/.docker/machine docker-machine -d create -d virtualbox default
i think best practice setup linux native build box if doing serious development. way can run docker without vm overhead(which ironically 1 of major pain points docker trying solve)
there's docker beta program runs on libcontainer natively on osx , windows.
Comments
Post a Comment