Add more non-root documentation (#1344)
This commit is contained in:
parent
222f954b6d
commit
3280ddda35
|
|
@ -4,7 +4,7 @@ The images in this repository contain IBM WebSphere Application Server Liberty f
|
||||||
|
|
||||||
# Image User
|
# Image User
|
||||||
|
|
||||||
This image runs by default with `USER 1001` (non-root), as part of `group 0`. All of the folders accessed by WebSphere Liberty been given the appropriate permission, but if your extending Dockerfile needs permission to another location you can simply temporarily switch into root and provide the needed permissions, example:
|
This image runs by default with `USER 1001` (non-root), as part of group `0`. All of the folders accessed by WebSphere Liberty have been given the appropriate permissions, but if your extending Dockerfile needs permission to another location you can simply temporarily switch into root and provide the needed permissions, example:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
USER root
|
USER root
|
||||||
|
|
@ -12,6 +12,8 @@ RUN mkdir -p /myFolder && chown -R 1001:0 /myFolder
|
||||||
USER 1001
|
USER 1001
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Also, you have to make sure that the artifacts you are copying into the image (via `COPY`) have the correct permission to be `read` and `executed` by user `1001` or group `0`. For example, you can do `chmod 777 server.xml` to ensure your `server.xml` can be `read` and `executed` by user `1001`.
|
||||||
|
|
||||||
# Tags
|
# Tags
|
||||||
|
|
||||||
There are multiple tags available in this repository. The image with the tag `beta` contains the contents of the install archive for the latest monthly beta. The other images are all based on the latest generally available fix pack.
|
There are multiple tags available in this repository. The image with the tag `beta` contains the contents of the install archive for the latest monthly beta. The other images are all based on the latest generally available fix pack.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue