By default, OceanBase Cloud Platform (OCP) is started after it is deployed. This topic describes how to start and stop OCP.
Procedure
Log on to the OCP host as the admin user.
Run the
docker ps -acommand to query the OCP container ID.CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a924a9853ea0 ocp:312 "/usr/bin/supervisord" 2 weeks ago Up 6 days ocp 797e178c53e4 reg.docker.alibaba-inc.com/antman/ob-docker:OB2276_OBP320_x86_20211102 "/usr/bin/supervisord" 2 weeks ago Up 19 hours META_OB_ZONE_1 50126e0eec15 8cc2986bf3a0 "/usr/bin/supervisord" 8 months ago Up 8 months distracted_heyrovsky 1ea473f6c0c3 reg.docker.alibaba-inc.com/oceanbase-platform/grafana:7.0.3 "/run.sh" 8 months ago Up 8 months grafanaThe CONTAINER ID column shows the container ID. The OCP container ID is a924a9853ea0.
Run the following command to start OCP:
docker start a924a9853ea0Run the following command to restart OCP:
docker restart a924a9853ea0Run the following command to stop OCP:
docker stop a924a9853ea0