When submitting a job or creating a cluster, you must specify a Batch Compute image ID. Batch Compute runs the specified image in virtual machines (VMs). Unlike ECS official images, Batch Compute images can be obtained from the following two sources:
Use the official Batch Compute images directly.
Purchase the image specific to the Batch Compute service at the cloud marketplace and create custom images.
1. Official Batch Compute images
Batch Compute provides three default system images for you to use directly (applicable to classic and VPC networks):
Operating system | Image ID | Configuration |
---|---|---|
Windows | img-windows-vpc | Windows Server 2008 R2 Enterprise 64-bit Chinese |
Ubuntu | img-ubuntu-vpc | Ubuntu 14.04 64-bit, python 2.7, jdk 1.7, Docker 17.0.1 |
Centos | img-centos-vpc | Centos 6.8 64-bit, python 2.6.6 |
If the default images cannot meet your requirements, create images according to custom image.
2. How to use images
2.1. Obtain available images
View the list of available images in the console:
If you use the Java SDK, see Obtain the image list.
If you use the Python SDK, see Obtain the image list.
Use the command line:
bcs i
.
2.2. Specify an image ID when creating a cluster
Specify an image ID when creating a cluster on the console:
If you use the Java SDK, see How to create a cluster.
If you use the Python SDK, see How to create a cluster.
If you use the command line tool, see How to use a cluster.
2.3. Specify an image when creating (submitting) a job
Specify an image ID when creating (submitting) a job in the console:
If you use the Java SDK, see How to create (submit) a job.
If you use the Python SDK, see How to create (submit) a job.
If you use the command line tool, see How to submit a job.