Aron T
Aron T

Reputation: 123

I can't deploy a community Ubuntu docker image to Azure Container Instance

I run the following Azure CLI command:

az container create --resource-group Experimental --name my-sage
 --image sagemath/sagemath-jupyter --ip-address public --ports 8888

and get the following error

The OS type 'null' of image 'sagemath/sagemath-jupyter' does not match the OS type 'Linux' of container group 'my-sage'.

Even though the sagemath image is built on Ubuntu Xenial image: https://github.com/sagemath/docker-images

How can I fix this?

Upvotes: 1

Views: 771

Answers (2)

Shui shengbao
Shui shengbao

Reputation: 19195

Currently, Azure Container instance does not support this image. You could try to create this image on Azure Portal, you will get same error log.

enter image description here

Please check this official document.

Azure Container Instances is a great solution for any scenario that can operate in isolated containers, including simple applications, task automation, and build jobs.

For your scenario, I suggest you could use Azure Container Service(aks).

Upvotes: 1

Hannel
Hannel

Reputation: 1706

The --os-type should default to Linux, if for some reason yours is not you can set the OS Type on the command.

az container create --resource-group Experimental --name my-sage
 --image sagemath/sagemath-jupyter --ip-address public --ports 8888 --os-type Linux

enter image description here

Hope this helps.

Upvotes: 0

Related Questions