Docker Community Forums

Share and learn in the Docker community.

Cannot create VM on SoftLayer from private iso Image

(Kloktallo) #1

I have successfully created VM on SoftLayer with Docker Machine via SoftLayer API with public image (for example UBUNTU_LATEST). But I want to create VM from imported private image. When I try it with private image, I got this error:

Error creating machine: Error in driver during machine creation: Error creating host: "Error in response: Invalid value provided for ‘operatingSystemReferenceCode’."

Is it possible at all via Docker Machine ?
Here is my Docker Machine command:

docker-machine create
–driver softlayer
–softlayer-user $USER
–softlayer-api-key $KEY
–softlayer-cpu $CPU
–softlayer-memory $MEM
–softlayer-domain $DOMAIN
–softlayer-hostname $HOSTNAME
–softlayer-region $REGION
–softlayer-image $IMAGE_NAME

OS version: Linux docker 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Docker Machine version: docker-machine version 0.6.0, build e27fb87

Thank you

(Dvohra) #2

Specify the provider’s image flag and one of its available images.

“For cloud providers, the base operating system is the latest Ubuntu LTS the provider supports”

“To use a different base operating system on a remote provider, specify the provider’s image flag and one of its available images.”


(Kloktallo) #3

Thank you for your answer.

I got it, docker machine does not support private images imported to SoftLayer, because my image is not listed in available images although I can see my image successfully imported via web gui.