AWS Cloudshell unable to start docker service

Viewed 1843

I have been created EKS cluster.

Now, I'm trying to create docker image to push it into my private ECR so I just installed docker using the following command:

amazon-linux-extras install docker

The installation succeed but when I'm tried to use docker I got the following:

[cloudshell-user@ip-10-0-73-203 ~]$ docker images
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

When I'm trying to start docker service I got:

[cloudshell-user@ip-10-0-73-203 ~]$ sudo systemctl start docker
Failed to get D-Bus connection: Operation not permitted

How can I solve it? Should I need to use another user?

1 Answers

Unfortunately this cannot be done (today).

Currently, the AWS CloudShell compute environment doesn't support Docker containers.

From the doc page.

An alternative would be to run a full fledge instance using Cloud9. Note Cloud9 has a cost as it is backed by an EC2 instance.

Related