You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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 🎈.
Info:
$ docker --version
):$ git rev-parse HEAD
):Issue:
failed to build redis container with security settings
Expected behavior:
Reproduce:
uncomment the lines on redis/Dockerfile and then
docker-compose build --no-cache redis
Relevant Code:
The text was updated successfully, but these errors were encountered: