aws / amazon-sagemaker-feedback

Amazon SageMaker Public Feedback Dashboard
Creative Commons Attribution Share Alike 4.0 International
6 stars 1 forks source link

ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? #132

Open Aisuko opened 2 months ago

Aisuko commented 2 months ago

Product Version

Issue Description

Thanks for your work.

Hi, I follow the document install docker, see https://github.com/aws-samples/amazon-sagemaker-local-mode/blob/main/sagemaker_studio_docker_cli_install/sagemaker-ubuntu-focal-docker-cli-install.sh

And I got error below, please help me thanks.

sagemaker-user@default:~$ docker info
Client: Docker Engine - Community
 Version:    27.2.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.16.2
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.29.2
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info
sagemaker-user@default:~$ sudo docker info
Client: Docker Engine - Community
 Version:    27.2.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.16.2
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.29.2
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info
sagemaker-user@default:~$ uname -a
Linux default 5.10.223-212.873.amzn2.x86_64 #1 SMP Wed Aug 7 16:53:32 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Expected Behavior

docker should work

Observed Behavior

No response

Product Category

JupyterLab

Feedback Category

Configuration and Setup

Other Details

No response

pdifranc commented 2 months ago

@Aisuko Hi - have you made sure the docker is enabled at the SageMaker Studio domain level? By default on existing and new domains is not enabled

https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-local.html#studio-updated-local-docker

Once you update the domain settings, you need to reboot the jupyterLab space for changes to take effect on an existing space

Aisuko commented 2 months ago

@Aisuko Hi - have you made sure the docker is enabled at the SageMaker Studio domain level? By default on existing and new domains is not enabled

https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-local.html#studio-updated-local-docker

Once you update the domain settings, you need to reboot the jupyterLab space for changes to take effect on an existing space

Hi @pdifranc super thanks.