this post was submitted on 18 Jun 2023
2 points (100.0% liked)

Lemmy Support

4720 readers
4 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

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://i.imgur.com/Y27cfXf.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?

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 0 points 2 years ago* (last edited 2 years ago) (1 children)

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 into lemmy/docker, make the config changes you need, then run docker-compose up -d

looks like there is already a PR about this: https://github.com/LemmyNet/lemmy/issues/3117

[โ€“] [email protected] 1 points 2 years ago* (last edited 2 years ago)

Thanks for your reply! I got the Dockerfile and I'm now getting these errors when building. Do you know what is happening? https://i.imgur.com/E3UHYt8.png