Closed v-hongli1 closed 1 year ago
@danieljurek should we reach-out to the Cloud Shell team on this for making our ACA templates work in Cloud Shell?
Possible solution... use an ACR task to build in the ACR instance. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-tasks-overview#quick-task
Docker daemon on the host is not supported in Cloud Shell currently: https://learn.microsoft.com/en-us/azure/cloud-shell/troubleshooting#you-cant-run-the-docker-daemon
Recommendation is to do actions which require the docker daemon (e.g. docker build
) on another host.
Docker daemon on the host is not supported in Cloud Shell currently: https://learn.microsoft.com/en-us/azure/cloud-shell/troubleshooting#you-cant-run-the-docker-daemon
Recommendation is to do actions which require the docker daemon (e.g.
docker build
) on another host.
Thanks for finding out more Daniel.
@savannahostrowski @puicchan @jongio If Cloud Shell doesn't natively support what we want. Instead of circumventing and making it work. Should we callout saying ACA templates are not supported form Cloud Shell?
Pinged the Cosmos team to check in on if there are particular scenarios they are targeting, which might help inform our path forward.
I think we can proceed and document this as a known limitation for now. I'll mark as docs, cc: @gkulin
Should be added to doc in the release which contains CloudShell support in Azd. Currently it is blocked with the JDK upgrade #1207
@danieljurek The same issue also occurs in the following cases, failed to connect to the Docker.
OS: Custom cloud shell.
Azd version: azd version 0.6.0-beta.2 (commit c4a201e55a13eba77f9037b296a90e0f81b00dbe)
Template: todo-java-mongo-aca
Error Message:
Repro Steps:
1.Run git clone https://github.com/danieljurek/CloudShell.git -b add-azd-validation
2.Run docker build -f ./linux/base.Dockerfile -t base_cloudshell
3.Run docker run -it tools_cloudshell java --version
4.Run docker run -it tools_cloudshell
5.Run azd login --use-device-code
6.Create a folder for the template, change to folder
7.Run azd init -t todo-java-mongo-aca
8.Run azd up
closed with https://github.com/MicrosoftDocs/azure-dev-docs-pr/pull/4193
it was added to the troubleshooting page: https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/troubleshoot#cannot-connect-to-the-docker-daemon-in-cloud-shell
cc @rajeshkamal5050 since I don't have permissions to close issues
Describe the issue: Can't start the docker in Cloud Shell.
Repro Steps:
Cloud Shell
terminalazd init -t <template>
azd up
Error Message:
Error Trace: After investigation, docker needs to be started, but we are neither the root user nor do we know the root password, so we can't start docker.
Environment: OS: Cloud Shell Template:
Azd version: 0.4.0-beta.1 (commit 2bf7a529914d86d8e9f5d7b6f95a4f20a2351e01)
Expected behavior: The docker service can successfully start.
@danieljurek for notification.