7.3. Deploy your plugin on a cluster
You can deploy the plugin to an OpenShift Container Platform cluster.
7.3.1. Build an image with Docker 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
To deploy your plugin on a cluster, you need to build an image and push it to an image registry first.
Procedure
Build the image with the following command:
$ docker build -t quay.io/my-repositroy/my-plugin:latest .Optional: If you want to test your image, run the following command:
$ docker run -it --rm -d -p 9001:80 quay.io/my-repository/my-plugin:latestPush the image by running the following command:
$ docker push quay.io/my-repository/my-plugin:latest