Hey everyone! I'm new to Ubuntu and trying to set up a DigiByte mining operation following this tutorial, but I've run into a frustrating error while trying to run PostgreSQL in Docker. The error message says: "Error response from daemon: failed to create task for container... no such file or directory: unknown." I've checked my commands and I don't see a 'latest' tag anywhere, but I've read that using it can cause issues. Can anyone help me figure out what's going wrong? Here are the commands I've used so far: (followed by a lengthy list of commands detailed in my original post) Any suggestions would be greatly appreciated!
2 Answers
The command you're using to run PostgreSQL in Docker is pulling the latest image, which is equivalent to using `postgres:latest`. The latest version is 18, and it seems they changed the data directory from `/var/lib/postgresql/data` to `/var/lib/postgresql/18/data`. You should update your volume mapping to match the new directory layout.
Just change the last part to `-v /data/.postgres/data:/var/lib/postgresql/18/data`. That should fix the mounting issue!
Have you checked if the application you're using supports PostgreSQL version 18? It might be better to use version 17 or even 16 if the documentation suggests that. In your Docker command for PostgreSQL, try changing the last part from `postgres` to `postgres:17`. Also, consider using Docker Compose to streamline your setup in the future.

Got it, so should I change the command to point to the new directory structure? How do I do that? I've been stuck on this for days and it's getting really exhausting. Thanks for helping!