Skip to content

Commit

Permalink
docs(troubleshoot): Add docker error troubleshooting guide
Browse files Browse the repository at this point in the history
Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>
  • Loading branch information
MortalHappiness committed Feb 28, 2024
1 parent 2b709f1 commit 63204c7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/community/troubleshoot.rst
Expand Up @@ -32,6 +32,31 @@ Depending on the contents of the logs or the `Events`, you can try different thi
Debugging common execution errors
----------------------------------

``Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This error will show if your are not running Docker with the native Docker engine in a Linux machine. Most probably you are running Docker via Docker Desktop.

- If you are using Docker Desktop in MacOs, run

.. prompt:: bash $

sudo ln -s ~/Library/Containers/com.docker.docker/Data/docker.raw.sock /var/run/docker.sock

- If you are using Docker Desktop in Linux, run

.. prompt:: bash $

sudo ln -s ~$USER/.docker/desktop/docker.sock /var/run/docker.sock

- If you are using some other tools to run Docker, you need to make sure that ``/var/run/docker.sock`` is linked to the correct socket file.

For example, if you are using Rancher Desktop on Linux, run

.. prompt:: bash $

sudo ln -s ~$USER/.rd/docker.sock /var/run/docker.sock

``message: '0/1 nodes are available: 1 Insufficient cpu. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod.'``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit 63204c7

Please sign in to comment.