Troubleshooting

This section addresses possible warnings or errors you might encounter while using the Anjuna tools.

anjuna-gcp-cli disk create fails when running in a Docker container

When running anjuna-gcp-cli disk create in a Docker container, you may see the following error:

# A Docker socket error about /var/run/docker.sock
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

This error occurs because the environment within a Docker container is different from the host machine’s environment. anjuna-gcp-cli requires access to the Docker socket (/var/run/docker.sock) to pull and process the container images.

To resolve this error, mount /var/run/docker.sock into your Docker container that will run anjuna-gcp-cli. For example, use the flag -v /var/run/docker.sock:/var/run/docker.sock in your docker run command.