A service name is a unique service identifier under the current cluster. Services access each other by entering service names + access ports.
Yes. You can log in to your CVM and execute the command
docker login to log in to the third-party image repository and pull the image.
Ensure that CVM’s in the cluster have internet bandwidth. Otherwise the creation of internet services may fail.
For more information, see Setting Limit on Service Resources.
If this option is enabled, applications in the container can have true root permission. We recommend that enable this option when you need to perform higher-level system operations on the applications in the container; for example, building NFS server.
Confirm if CPU and memory resources are sufficient. Otherwise container creation will fail.
Yes. You can set the number to 0. In this case, the service configuration is retained but the resources will be freed up.
Both rolling update and quick update are supported.
All containers and internet load balancers under a service are terminated upon service deletion. Back up the data in advance.
Containers use UTC by default. If the problem of an 8-hour difference between the container system time and Beijing time always occurs when you use a container, create a time zone file in Dockerfile.
RUN echo "Asia/shanghai" > /etc/timezone;
If the startup command is not set or the default startup command is
bash, the container will exit after the startup procedure is completed. To keep the container running, the process in the container with PID set to 1 must be the permanent process. Otherwise, the container exits when this process ends. For some images like CentOS, you can create services by using
/bin/bash as the running command and
-c sleep 800000 as the running parameter.
sleep 800000 must be entered in different rows in the console.
Currently, the images that cannot be started using default parameters include: clearlinux, ros, mageia, amazonlinux, ubuntu, clojure, crux, gcc, photon, java, debian, oraclelinux, mono, bash, buildpack-deps, golang, sourcemage, Swift, openjdk, centos, busybox, docker, alpine, ibmjava, php, and python.