I’m following the steps outlined in the official documentation at https://join-lemmy.org.
When I run
docker-compose up -d
It returns the following error
failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount182554177/Dockerfile: no such file or directory
Here’s a screenshot from my terminal. https://lemmy.kya.moe/imgproxy?src=i.imgur.com%2fY27cfXf.png
How do I correct this?
EDIT: I’ve been researching this the best I can for some time now. The most common suggestion is to make sure that the Dockerfile is spelled correctly in the docker-compose.yml. It is.
Am I supposed to be creating a Dockerfile and fill it with some information? Is this intentionally left unaddressed by the guide for docker install? Is there some prerequisite I’m not fulfilling that the guide doesn’t address?
I am having the same issue. It looks like the docker guide is missing setting up the Docker file…
edit:
I appear to have figured this out. You need to download the Dockerfile from https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/Dockerfile and save it to $HOME/docker . This should be updated in the documentation…its actually even easier than that. Just do
git clone https://github.com/LemmyNet/lemmy.git
,cd
intolemmy/docker
, make the config changes you need, thenrun docker-compose up -d
looks like there is already a PR about this: https://github.com/LemmyNet/lemmy/issues/3117
Thanks for your reply! I got the Dockerfile and I’m now getting these errors when building. Do you know what is happening? https://lemmy.kya.moe/imgproxy?src=i.imgur.com%2fE3UHYt8.png