docker - Check the File in Exited Container -


i have issue invoking script start container. think i'd better first find way tell if script located in right place. neither docker exec nor docker attach seems allow me exited container.

i tried docker run -it --volumes-from [exited_container_id] ubuntu. thought might able see file system in ubuntu cannot find mounting point. there way me login exited container , see files added?

you can check if script located in right place adding run ls -l / line in dockerfile , building image

from frolvlad/alpine-oraclejdk8:slim add build/libs/zuul*.jar /app.jar add src/main/script/startup.sh /startup.sh  run ls -lah /  expose 8080 8999 entrypoint ["/startup.sh"] 

then build dockerfile

docker build -t myapp . 

you should see result of ls in output of build


Comments