test
Sending build context to Docker daemon 14.85kB
Step 1/6 : FROM alpine
---> 196d12cf6ab1
Step 2/6 : ADD a.out /a.out
---> Using cache
---> 91e300dc276b
Step 3/6 : RUN chmod 777 /a.out
---> Using cache
---> 0af2a69690ec
Step 4/6 : RUN chmod o+x /a.out
---> Using cache
---> 1000deaf206f
Step 5/6 : WORKDIR /
---> Using cache
---> 991667ed1ec4
Step 6/6 : ENTRYPOINT ["/a.out"]
---> Using cache
---> 6b1cb732f9ae
Successfully built 6b1cb732f9ae
Successfully tagged test:latest
~/test # docker run test
standard_init_linux.go:190: exec user process caused "no such file or directory"
~/test # cat Dockerfile
FROM alpine
ADD a.out /a.out
RUN chmod 777 /a.out
RUN chmod o+x /a.out
WORKDIR /
ENTRYPOINT ["/a.out"]
WTF?
docker build --no-cache -t test:latest .
Обсуждают сегодня