Azure cloud shell docker build errors out

Patel, Sunil (Alpharetta) 0 Reputation points
2023-03-04T13:36:19.1366667+00:00

I see that docker is available inside azure cloud shell with docker --version command. However, if I try to build an image with docker build command it gives me an error as if docker demon is not started. Is this not possible and if so why have docker available inside cloudshell. Also, I would like to install Vue to make this my learning/play machine (container) with tools but once again not successful. Could someone guide me with this. thanks.

Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2023-03-23T15:20:42.9566667+00:00

    You can't run the docker daemon in Azure Cloud Shell. Cloud Shell uses a container to host your shell environment, as a result running the daemon is disallowed

    Resolution: Utilize docker-machine, which is installed by default, to manage docker containers from a remote Docker host.

    Remember that you are not a root user when running a command in cloudshell. So, it is expected to popup an error while you try to install some applications which need to access the folders like /usr/local/bin


    --please don't forget to upvote and Accept as answer if the reply is helpful--

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.