Docker can't copy the file in the container and check it out after copy.
-
I have a docker image. https://github.com/reap/docker-glassfish3 ) in which glassfish is conceived. I need to copy the file in the dockerA container, but I need to do something by writing instructions to copy the Dockerfile files. I'm doing this:
FROM reap/docker-glassfish3 ADD ./files/ relativeDir/ RUN /create_domain.sh example 6000 EXPOSE 6048 6080
There's no mistakes when you start, which means the file adds. But I can't find it inside the container and copy it to the host.
-
You don't have a folder in your container. relativeDir♪ We need to create and copy.
Something like that if you have create_domain.sh. lies at the root files:
FROM reap/docker-glassfish3 RUN mkdir /var/relativeDir ADD ./files/ /var/relativeDir RUN /var/relativeDir/create_domain.sh example 6000 EXPOSE 6048 6080
You're trying to start a violin.
RUN /var/relativeDir/create_domain.sh
But according to the commentaries, you don't have this file in the file. files♪I'd recommend to start reading the bases. https://docs.docker.com/mac/step_four/