Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Service 'redis' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder841250484/redis.conf: no such file or directory #1954

Closed
ronydebnath opened this issue Jan 14, 2019 · 2 comments · May be fixed by #1959
Labels

Comments

@ronydebnath
Copy link
Contributor

Info:

  • Docker version ($ docker --version):
  • Laradock commit ($ git rev-parse HEAD):
  • System info (Mac, PC, Linux):
  • System info disto/version:

Issue:


failed to build redis container with security settings

Building redis
Step 1/7 : FROM redis:latest
 ---> 5d2989ac9711
Step 2/7 : LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
 ---> Running in 0bdef57e5a06
Removing intermediate container 0bdef57e5a06
 ---> 98de22643575
Step 3/7 : RUN mkdir -p /usr/local/etc/redis
 ---> Running in 44e2bc11059a
Removing intermediate container 44e2bc11059a
 ---> 29cc52cabdc1
Step 4/7 : COPY redis.conf /usr/local/etc/redis/redis.conf
ERROR: Service 'redis' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder841250484/redis.conf: no such file or directory

Expected behavior:


Reproduce:

FROM redis:latest

LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"

## For security settings uncomment, make the dir, copy conf, and also start with the conf, to use it
RUN mkdir -p /usr/local/etc/redis
COPY redis.conf /usr/local/etc/redis/redis.conf

VOLUME /data

EXPOSE 6379

CMD ["redis-server", "/usr/local/etc/redis/redis.conf"]
#CMD ["redis-server"]

uncomment the lines on redis/Dockerfile and then

docker-compose build --no-cache redis


Relevant Code:

// place a code sample here
@stale
Copy link

stale bot commented Feb 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Feb 2, 2020
@stale
Copy link

stale bot commented Feb 23, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant