Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 2
    See ADD and COPY to copy files from your host to your container, docs.docker.com/reference/builder/#add and docs.docker.com/reference/builder/#copy Commented Sep 2, 2015 at 11:41
  • Thanks @user2915097 (+1) - two quick followups if you don't mind: (1) do either of these instructions create directories for you if they don't previously exist? Their docs don't say either way. And (2) can I then assume that I'd want to use a RUN or CMD instruction to run the executable jar? Thanks again! Commented Sep 2, 2015 at 11:58
  • in order to run the executable jar, you will use either CMD or ENTRYPOINT, see for example stackoverflow.com/questions/30752853/… Commented Sep 2, 2015 at 12:00
  • extract from docs.docker.com/reference/builder/#add "All new files and directories are created with a UID and GID of 0." Commented Sep 2, 2015 at 12:02