Docker build stuck fluentd-docker-image/blob/master/v1.14/debian/Dockerfile
koushickp opened this issue · 2 comments
docker build is getting stuck at step 7
Docker file
https://github.com/fluent/fluentd-docker-image/blob/master/v1.14/debian/Dockerfile
Step 6/14 : RUN groupadd -r fluent && useradd -r -g fluent fluent && mkdir -p /fluentd/log && mkdir -p /fluentd/etc /fluentd/plugins && chown -R fluent /fluentd && chgrp -R fluent /fluentd
---> Running in b06b35608d4c
Removing intermediate container b06b35608d4c
---> 1b6782c6ab57
Step 7/14 : COPY fluent.conf /fluentd/etc/
COPY failed: file not found in build context or excluded by .dockerignore: stat fluent.conf: file does not exist
Could you please support to resolve this
Hmm, not reproduced for me.
% docker --version
Docker version 20.10.8+dfsg1, build 3967b7d
Under v1.14/debian, execute docker build -t tmp .
Removing intermediate container 1ca3c1408475
---> a63187e31214
Step 6/14 : RUN groupadd -r fluent && useradd -r -g fluent fluent && mkdir -p /fluentd/log && mkdir -p /fluentd/etc /fluentd/plugins && chown -R fluent /fluentd && chgrp -R fluent /fluentd
---> Running in d45b6755dff5
Removing intermediate container d45b6755dff5
---> c1631dc4db5d
Step 7/14 : COPY fluent.conf /fluentd/etc/
---> 486dc0b10786
Step 8/14 : COPY entrypoint.sh /bin/
---> 7ecce4e1079a
Step 9/14 : ENV FLUENTD_CONF="fluent.conf"
---> Running in b9c172c09ef1
Removing intermediate container b9c172c09ef1
---> 82c69e268e48
Step 10/14 : ENV LD_PRELOAD="/usr/lib/libjemalloc.so.2"
---> Running in badbd0d2fef8
Removing intermediate container badbd0d2fef8
---> ec2c10b31892
Step 11/14 : EXPOSE 24224 5140
---> Running in 29a52de01f84
Removing intermediate container 29a52de01f84
---> 031903499b69
Step 12/14 : USER fluent
---> Running in 199407fc1011
Removing intermediate container 199407fc1011
---> 14f100b7335a
Step 13/14 : ENTRYPOINT ["tini", "--", "/bin/entrypoint.sh"]
---> Running in 95119578b1fc
Removing intermediate container 95119578b1fc
---> 22785cacd708
Step 14/14 : CMD ["fluentd"]
---> Running in dc90164e3798
Removing intermediate container dc90164e3798
---> c53ac5e0537d
Successfully built c53ac5e0537d
Successfully tagged tmp:latest
Issue was resolved with git clone and then build of the image
It seems the dockerfile had dependencies