I have a feeling this has something to do with the fact I am running docker for windows. Maybe something to do with the formatting of files in windows vs Linux...
I just had weirdest thing happen to my Docker. Docker images that I build using the command DOCKER BUILD
are now erroring when I run them as a container saying that the files that in the ENTRYPOINT
cannot be found.
[FATAL tini (7)] exec /bin/start_vsftpd.sh failed: No such file or directory
These images are not MINE, they are GIT repos from GITHUB which 100% work and I have ran them several times in the past without issue (as i expect you to assume I have done something wrong here). However, yesterday I made some changes to the docker file and rebuilt them. It worked fine. Today for some reason it stopped working. So I rolled them all back to how they were before. This still did not resolve the issue. And here is the strangest part - in the end I just wiped everything - the repo from machine, all images and containers, and started fresh. I downloaded the repo again (which hasn't been updated in 10 months) and I have the same issue where when running the container it cannot find said file.
Some more info - the docker file itself uses the COPY command to copy an sh file from my local machine (the repo) into the image, this DOES work. I know this because I managed to connect to the running container and can see the file where it should be.
I can't think of anything I have changed on my machine. Can anyone advise what might be going on here?
Docker file below. It is the
/bin/start_vsftpd.sh
it says it cannot find.
ARG BASE_IMG=alpine:3.15
FROM $BASE_IMG AS pidproxy
RUN apk --no-cache add alpine-sdk \
&& git clone https://github.com/ZentriaMC/pidproxy.git \
&& cd pidproxy \
&& git checkout 193e5080e3e9b733a59e25d8f7ec84aee374b9bb \
&& sed -i 's/-mtune=generic/-mtune=native/g' Makefile \
&& make \
&& mv pidproxy /usr/bin/pidproxy \
&& cd .. \
&& rm -rf pidproxy \
&& apk del alpine-sdk
FROM $BASE_IMG
COPY --from=pidproxy /usr/bin/pidproxy /usr/bin/pidproxy
RUN apk --no-cache add vsftpd tini
COPY start_vsftpd.sh /bin/start_vsftpd.sh
COPY vsftpd.conf /etc/vsftpd/vsftpd.conf
EXPOSE 21 21000-21010
VOLUME /ftp/ftp
ENTRYPOINT ["/sbin/tini", "--", "/bin/start_vsftpd.sh"]