From 04819a08c1606f87348e685d3b7e7b5e6c45a2eb Mon Sep 17 00:00:00 2001 From: Ashen Kavinda De Silva Date: Tue, 27 Jul 2021 18:37:12 +0530 Subject: [PATCH] UID and GID update tip added to dockerfile README.md (#295) * UID update tip added to README.md. (cherry picked from commit e55cbd4f27024162724824562c5ada0ee4fc8a54) * UID update tip added to README.md. (cherry picked from commit b7a49465ca98851b88b3dbbd7403aba38e6a07c8) * GID added to the tip. (cherry picked from commit 0da09da5e5b518f7f8e5f2db7bcbad5c5a6fac7a) * Comments addressed. (cherry picked from commit 1cbea14791d09379ce4193fb205bdcf45f7e265a) * UID and GID change tip updated. (cherry picked from commit c73d16db4b6dd32f3484d23b43266b59e01f5eff) * Comments addressed. (cherry picked from commit 2c141a1b48c2e5c321770d25cc95db6fbb682576) * New line added. --- dockerfiles/alpine/is/README.md | 5 +++++ dockerfiles/centos/is/README.md | 5 +++++ dockerfiles/ubuntu/is/README.md | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/dockerfiles/alpine/is/README.md b/dockerfiles/alpine/is/README.md index 68764d5b..ec57490b 100755 --- a/dockerfiles/alpine/is/README.md +++ b/dockerfiles/alpine/is/README.md @@ -25,6 +25,11 @@ git clone https://github.com/wso2/docker-is.git > By default, the Docker image will prepackage the General Availability (GA) release version of the relevant WSO2 product. +> Tip - If you require the container to run with a different UID and GID, pass the preferred values of the UID and GID +> as values for build arguments `USER_ID` and `USER_GROUP_ID` when building the image, as shown below. Note +> that setting lower values for the UID and GID is not recommended. ++ `docker build -t wso2is:5.11.0-alpine --build-arg USER_ID= --build-arg USER_GROUP_ID= .` + ##### 3. Running the Docker image. - `docker run -it -p 9443:9443 wso2is:5.11.0-alpine` diff --git a/dockerfiles/centos/is/README.md b/dockerfiles/centos/is/README.md index e1690a1a..f71078d7 100755 --- a/dockerfiles/centos/is/README.md +++ b/dockerfiles/centos/is/README.md @@ -25,6 +25,11 @@ git clone https://github.com/wso2/docker-is.git > By default, the Docker image will prepackage the General Availability (GA) release version of the relevant WSO2 product. +> Tip - If you require the container to run with a different UID and GID, pass the preferred values of the UID and GID +> as values for build arguments `USER_ID` and `USER_GROUP_ID` when building the image, as shown below. Note +> that setting lower values for the UID and GID is not recommended. ++ `docker build -t wso2is:5.11.0-centos --build-arg USER_ID= --build-arg USER_GROUP_ID= .` + ##### 3. Running the Docker image. - `docker run -it -p 9443:9443 wso2is:5.11.0-centos` diff --git a/dockerfiles/ubuntu/is/README.md b/dockerfiles/ubuntu/is/README.md index 6396c858..40ad53ce 100755 --- a/dockerfiles/ubuntu/is/README.md +++ b/dockerfiles/ubuntu/is/README.md @@ -25,6 +25,11 @@ git clone https://github.com/wso2/docker-is.git > By default, the Docker image will prepackage the General Availability (GA) release version of the relevant WSO2 product. +> Tip - If you require the container to run with a different UID and GID, pass the preferred values of the UID and GID +> as values for build arguments `USER_ID` and `USER_GROUP_ID` when building the image, as shown below. Note +> that setting lower values for the UID and GID is not recommended. ++ `docker build -t wso2is:5.11.0 --build-arg USER_ID= --build-arg USER_GROUP_ID= .` + ##### 3. Running the Docker image. - `docker run -it -p 9443:9443 wso2is:5.11.0`