You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN ["mkdir", "-p", "/opt/docker/logs"]
VOLUME ["/opt/docker/logs"]
EXPOSE 8081
FROM dockerfile/java
MAINTAINER blah blah [email protected]
ADD files /
WORKDIR /opt/docker
RUN ["chown", "-R", "daemon", "."]
USER daemon
ENTRYPOINT ["bin/registration"]
CMD []
Which has the RUN, VOLUME, EXPOSE commands before the FROM, which results in the following error when running docker:publishLocal:
[error] 2014/07/15 18:34:48 Please provide a source image with from prior to run
[trace] Stack trace suppressed: run last registration/docker:publishLocal for the full output. error Nonzero exit value: 1
[error] Total time: 5 s, completed 15/07/2014 6:34:48 PM
The text was updated successfully, but these errors were encountered:
fmg-kevin-kilroy
changed the title
Commands output in wrong order?
Docker Commands output in wrong order?
Jul 15, 2014
v0.7.2
DockerPlugin.scala:45
Dockerfile(volumeCommands ++ exposeCommand ++ dockerCommands: _*).makeContent
Produces the following Dockerfile:
RUN ["mkdir", "-p", "/opt/docker/logs"]
VOLUME ["/opt/docker/logs"]
EXPOSE 8081
FROM dockerfile/java
MAINTAINER blah blah [email protected]
ADD files /
WORKDIR /opt/docker
RUN ["chown", "-R", "daemon", "."]
USER daemon
ENTRYPOINT ["bin/registration"]
CMD []
Which has the RUN, VOLUME, EXPOSE commands before the FROM, which results in the following error when running docker:publishLocal:
[error] 2014/07/15 18:34:48 Please provide a source image with
from
prior to run[trace] Stack trace suppressed: run last registration/docker:publishLocal for the full output.
error Nonzero exit value: 1
[error] Total time: 5 s, completed 15/07/2014 6:34:48 PM
The text was updated successfully, but these errors were encountered: