Is there a way to run Azure Cloud Shell NOT in a browser?
I would like to use the Azure Cloud Shell commands, but not have to do it in a browser window.
Azure Cloud Shell is an interactive, authenticated, browser-accessible shell for managing Azure resources. It could provide you with browser-based shell experience so that you can work with it on Bash or Powershell anywhere.
I don't think you can run it not in a browser. However, if you just want to run the Azure cloud shell commands from your Powershell locally. You can look up Azure PowerShell documentation. You will first install the Azure PowerShell module on your Windows machine, then you can start to work with Azure PowerShell commands to manage your Azure resources.
Related
We have a problem with Azure pipeline.
Inside pipeline we are running integration tests, those tests interacts with Docker Rest API to run specific containers (we are using Docker.DotNet for that). Everything works on on-premise hosted build agent, but doesn't on Microsoft-hosted (Ubuntu based). All calls to Docker REST API ends with timeout exception.
Does Docker engine in Microsoft-hosted Ubuntu build agent contains Docker REST API?
I have web application developed using the PHP and Laravel and trying to host in the Azure Web App for Containers service. I have integrated stackify logging functionality for the application and the server.
I need to send additional parameters to the docker run command in the azure web app for containers, need to pass the pid and v in the docker run command.
docker run -it --pid=host -v /usr/local/stackify:/usr/local/stackify
I did not find a way to configure. Please suggest a solution to resolve this. Is there any way configure the docker run commaned in the Azure web app for container service.
I have created.NetCore Application and was successfully deployed to the local PC docker container.
Now I am trying to build it from Azure DevOps and publish it to one of my servers hosted on-premise.
Now I have no idea how to host it. Also not sure what is Docker Registry Service Connection & Container Registry Type.
My DevOps server is also hosted on-premise with no docker installed on it.
I have a docker account with one private repository.
Please suggest how to continue as I am getting the below error while building the image
open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
Thanks
Deploy docker to on-premise using azure CI-CD
If you want to deploy app to the local PC docker container, you can use Self-hosted Agent(Build Pipeline and Release Pipeline) or Deployment Group(Release Pipeline).
Note: we need set the self-agent on the server where have docker installed.
Then you could try the following pipeline settings.
Here is a blog about ASP.Net Application Deployment in Docker for Windows.
You could use Command Line Task to run the docker command. In this case, you can move the local build and deploy process to azure devops
I'm messing around with Artifactory and have used the artififactory-pro docker container to get me up and running on an azure vm. I'm now trying to push a docker image to the docker-local repository within Artifactory. This is working locally but I had to change my local docker options to include the insecure-registry I set up.
To continue my POC further I want to be able to push to the artifactory docker repo using the MS hosted 'ubuntu-latest' agent with Azure pipelines but I believe I need to set the docker options on the agent to again allow the insecure regsitry as it's currently throwing the error:
[Error] Docker login failed for: http:/, http:.
How do I set the docker options on the MS hosted agent within my pipeline? I'm having to install .net-core 3.1 sdk during the pipeline so i'd like to think it is possible.
Thanks
As far as I know, you cannot set docker options to allow insecure regsitry on MS hosted agent. To set insecure registry, you have to modify some docker config file. But we are restricted to modify the system files of MS hosted agent for security reason, you will get access denied error if you try to do so.
The workaround is to create your own self-hosted agent on your local machine. So that you can set the insecure registry for docker daemon on local machine.
However you can also submit a feature request(click suggest a feature and choose azure devops) to Microsoft Development team. Hope they will consider implementing a feature to enable seting docker options on MS hosted agent.
When working locally I often use the docker exec command to look around and debug containers.
Is there a way to do this from my PC when the containers are deployed on docker-cloud?
I realize there is a terminal tab on the docker-cloud GUI but I'm finding it a bit limited.
Yes, if you can open an ssh session on your docker cloud service (which is probably possible).
Or, more likely, if you run and access your container through a Docker Cloud Agent, which allows you to use any Linux host (“bring your own host”) as a node which you can then use to deploy containers.
Otherwise, no, as the socket used by docker cloud session would not be exposed through internet, and is used only locally on the remote cloud server.
You can use the approach here(https://docs.docker.com/docker-cloud/infrastructure/ssh-into-a-node/#ssh-into-docker-cloud-node) and it has worked for me.