1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/build-image-docker.adoc
2025-12-23 21:00:36 +00:00

34 lines
799 B
Plaintext

// Module included in the following assemblies:
//
// * web_console/dynamic-plugin/deploy-plugin-cluster.adoc
:_mod-docs-content-type: PROCEDURE
[id="build-image-with-docker_{context}"]
= Build an image with Docker
[role="_abstract"]
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:
+
[source,terminal]
----
$ docker build -t quay.io/my-repositroy/my-plugin:latest .
----
. Optional: If you want to test your image, run the following command:
+
[source,terminal]
----
$ docker run -it --rm -d -p 9001:80 quay.io/my-repository/my-plugin:latest
----
. Push the image by running the following command:
+
[source,terminal]
----
$ docker push quay.io/my-repository/my-plugin:latest
----