Azure Linux VM not connecting after installing Docker.

ABHISHEK KUMAR JHA 0 Reputation points
2023-07-28T11:03:56.56+00:00

Hi.

I am unable to connect to Azure Linux VM after installing Docker.

Port 22 for SSH is allowed in NSG.

I have to restore the VM to be able to connect.

Note: VM is behind Firewall

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,570 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Manjesh V 0 Reputation points
    2025-03-13T06:43:02.3066667+00:00

    i did

    az vm run-command invoke --resource-group <RESOURCE_GROUP> --name <VM_NAME> --command-id RunShellScript --scripts "sudo apt-get remove --purge -y docker.io docker-ce docker-ce-cli containerd runc && sudo systemctl restart ssh"

    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.