Thanks for asking question! Could you please confirm on what do mean from container id?
You can check container name from the background by going to the Web App in the Azure portal and looking at the Logs in the Container settings.
Further if you are getting connection refused error while connecting with SSH then you need to enable the SSH in the custom image.
Check this doc link for enabling SSH https://learn.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-linux#enable-ssh
Additional details : Things You Should Know: Web Apps and Linux