Skip to content

[Issue] Test if docker is running before calling docker commands #393

Description

@jongio

azd up

Got this:

Error: Command Failed: deploying service jongtodo100api: packaging service jongtodo100api: building container image: jongtodo100api at src/api: building container image: exit status 1 : exit code: 1, stdout: , stderr: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&platform=amd64&rm=1&shmsize=0&t=jongtodo100api&target=&ulimits=null&version=1": open //./pipe/docker_engine: The system cannot find the file specified.

Turns out docker wasn't running

I would like azd to tell me it isn't running before it tries to execute the command.

Metadata

Metadata

Assignees

Labels

area/core-cliCLI commands, cmd/, internal/cmd/featureFeature requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions