Troubleshoot docker installation issues

AI-generated summary

The user encountered a Docker installation error while rebuilding Discourse using ./launcher rebuild app, which prompted a message directing them to troubleshooting resources. The response advises checking earlier error lines for the root cause, testing Docker functionality with docker run -it --rm hello-world, and searching for solutions via Google or the Docker forums. It also suggests verifying available disk space and running ./launcher cleanup if needed. Often, simply restarting the Docker service with sudo systemctl restart docker.service resolves the issue. The guidance emphasizes methodical troubleshooting: first diagnose the actual error, then test basic Docker functionality, and finally consider system-level fixes like service restarts or cleanup.

I just ran:

    cd /var/discourse
    git pull
    ./launcher rebuild app

And am getting:

Your Docker installation is not working correctly
See: https://meta.discourse.org/t/docker-error-on-bootstrap/13657/18?u=sam

What do I do?

First things first … scroll up.

The error will usually contain multiple lines, the last line just points you here, previous lines point at the actual issue.

Second thing … can you run a trivial container… try.

docker run -it --rm hello-world

If this is not working, your docker installation is broken.

First start by googling the error you found, remember there is a very active community at https://forums.docker.com/ that may either have had this issue or can help you out.

Maybe you are out of disk space?

Try

./launcher cleanup

Very often the problem is solved by restarting the docker service

sudo systemctl restart docker.service

Last edited by @JammyDodger 2024-05-26T20:54:33Z

Check documentPerform check on document:
11 Likes