repo2docker-action icon indicating copy to clipboard operation
repo2docker-action copied to clipboard

Could not connect to docker daemon when running on k8s action runner

Open omri-shilton opened this issue 2 years ago • 1 comments

Describe the bug When running on self-hosted runner on kubernetes cluster im getting the following error. My runners are working propely and i've managed to build docker in docker on them fine.

Run jupyterhub/repo2docker-action@master
/usr/local/bin/docker run --name e2260c69769d954248a783072ff35e7ea6fe_c6ad0e --label 60e226 --workdir /github/workspace --rm -e "IMAGE_NAME" -e "REGISTRY" -e "INPUT_LATEST_TAG_OFF" -e "INPUT_IMAGE_NAME" -e "INPUT_DOCKER_REGISTRY" -e "INPUT_ADDITIONAL_TAG" -e "INPUT_DOCKER_USERNAME" -e "INPUT_DOCKER_PASSWORD" -e "INPUT_REPO2DOCKER_EXTRA_ARGS" -e "INPUT_NOTEBOOK_USER" -e "INPUT_REPO_DIR" -e "INPUT_APPENDIX_FILE" -e "INPUT_NO_PUSH" -e "INPUT_BINDER_CACHE" -e "INPUT_COMMIT_MSG" -e "INPUT_MYBINDERORG_TAG" -e "INPUT_PUBLIC_REGISTRY_CHECK" -e "INPUT_NO_GIT_PUSH" -e "INPUT_FORCE_REPO2DOCKER_VERSION" -e "INPUT_EXTRA_PIP_INSTALL" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_EVENT_PATH" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "GITHUB_ACTION" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/runner/_work/_temp/_github_home":"/github/home" -v "/runner/_work/_temp/_github_workflow":"/github/workflow" -v "/runner/_work/_temp/_runner_file_commands":"/github/file_commands" -v "/runner/_work/armoz/armoz":"/github/workspace" 60e226:0c69769d954248a783072ff35e7ea6fe
Validate Information
Show Variables
Build armoz.azurecr.io/jupyter/notebook:2fab9c0d34e7
  
  Container engine initialization error: ('Check if docker is running on the host.', DockerException("Error while fetching server API version: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))"))

When I swap to the github runners everything works correctly.

Expected behavior Working and building the repo image

omri-shilton avatar Jun 13 '23 07:06 omri-shilton

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

welcome[bot] avatar Jun 13 '23 07:06 welcome[bot]