N
N
Nikita072021-09-22 12:13:46
Docker
Nikita07, 2021-09-22 12:13:46

How to fix docker build command error?

Hello everyone, help me deal with Docker (th) I have the following Dockerfile

FROM redis
COPY redis.conf C:/Projects/RedisFiles/redis.conf
CMD [ "redis-server", "C:\\Projects\\RedisFiles\\redis.conf" ]


Which works with the Redis image, but when I run the command I get
docker build .
the error

failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount878225771/Dockerfile: no such file or

directory to correct?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Larisa .•º, 2021-09-22
@barolina

alternatively, if you are running on WIndows via wsl Linux and the filenames are case sensitive, try renaming the Dockerfile to dockerfile

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question