瀏覽代碼

Update content.md (#714)

* Update content.md
* markdown formatting
Liam White 9 年之前
父節點
當前提交
249a04e17b
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      websphere-liberty/content.md

+ 10 - 0
websphere-liberty/content.md

@@ -107,3 +107,13 @@ Then, run the WebSphere Liberty image with the volumes from the data volume cont
 ```console
 ```console
 docker run -d -p 80:9080 -p 443:9443 --volumes-from classcache app
 docker run -d -p 80:9080 -p 443:9443 --volumes-from classcache app
 ```
 ```
+
+# Running WebSphere Liberty in read-only mode
+
+Liberty writes to two different directories when running: `/opt/ibm/wlp/output` and `/logs`. In order to run the Liberty image in read-only mode these may be mounted as temporary file systems. If using the provided image, the keystore will be generated on initial start up in the server configuration. This means that the server configuration directory either needs to be read-write or the keystore will need to be built into the image. In the example command `/config` is mounted as a read-write volume.
+
+```console
+docker run -d -p 80:9080 -p 443:9443 \
+    --tmpfs /opt/ibm/wlp/output --tmpfs /logs -v /config --read-only \
+    websphere-liberty:javaee7
+```