umputun / remark42

comment engine
https://remark42.com
MIT License
4.81k stars 374 forks source link

Dockerfile seems to be corrupted/missing in a new Docker image #1720

Closed d31337ed closed 7 months ago

d31337ed commented 7 months ago

Hi there!

I've tried to slightly change settings in my copy of docker-compose.yml and restart existing instances of remark42 container like I did few times before

However, today I faced an error:

Building remark
[+] Building 0.0s (2/2) FINISHED                                                                                                                   docker:default
 => [internal] load build definition from Dockerfile                                                                                                         0.0s
 => => transferring dockerfile: 2B                                                                                                                           0.0s
 => [internal] load .dockerignore                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                              0.0s
ERROR: failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount1824847275/Dockerfile: no such file or directory
ERROR: Service 'remark' failed to build : Build failed

To eliminate an error I've tried to:

For double check I've tried to execute a clean installation from docker image in two independent systems. Having the same issue on a second system:

[+] Building 0.0s (2/2) FINISHED                                                                                                              docker:desktop-linux
 => [remark internal] load .dockerignore                                                                                                                      0.0s
 => => transferring context: 2B                                                                                                                               0.0s
 => [remark internal] load build definition from Dockerfile                                                                                                   0.0s
 => => transferring dockerfile: 2B                                                                                                                            0.0s
failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount1797421555/Dockerfile: no such file or directory

Steps to reproduce:

  1. Download clean docker-compose.yml from repo: https://github.com/umputun/remark42/blob/master/docker-compose.yml
  2. Execute docker-compose pull && docker-compose up -d

Please review a content of the latest docker image Thank you!

umputun commented 7 months ago

I'm uncertain about the meaning of "Dockerfile seems to be corrupted/missing in a new Docker image." The idea of a Dockerfile missing from Docker images is somewhat confusing, as the image is an artifact built using the Dockerfile, which doesn't include the Dockerfile itself.

Here's how you can download Docker Compose and start the container:

image

As demonstrated, it works seamlessly.

Your first example seems to show an attempt to build from the source, rather than pulling the image. To build it, you should first clone the repository. The section where you mention "To eliminate an error, I've tried to..." also suggests an attempt to build the image, which isn't necessary if you pulled the image first and the image in your compose matches the published one.

Could there be an issue accessing the Docker Hub hosting the image? If so, you might consider changing the image in your compose to one stored on the GitHub registry, such as ghcr.io/umputun/remark42:latest.

umputun commented 7 months ago

as this is clearly not a bug but rather some sort of confusion, I'll move it to discussions