Accessing Liberty log files from the Bluemix Liberty docker image running locally -
my goal develop application run on websphere liberty hosted in docker , running on bluemix. during development, have installed docker on local linux pc , downloaded ibm base docker image containing configured liberty. image called:
registry.ng.bluemix.net/ibmliberty
i start image in docker locally in pc , attach shell can see going on. find there liberty server located at
/opt/ibm/wlp/usr/servers/defaultserver
now here comes puzzle.
in liberty servers used working upon, messages produced server written "logs/messages.log" file relative server. mean have expected find liberty message files here:
/opt/ibm/wlp/usr/servers/defaultserver/logs/messages.log
however, when start server, there nothing there.
how can access logs of liberty server obtained bluemix base image (registry.ng.bluemix.net/ibmliberty
) running under docker natively on linux environment on local pc?
if examine ibm liberty/bluemix documentation page:
https://console.bluemix.net/docs/images/docker_image_ibmliberty/ibmliberty_starter.html
we find section reads:
note: ibmliberty images configured write liberty log files directory /logs inside container. other files written liberty server, created in directory /opt/ibm/wlp/output/defaultserver. can access these files using shortcut /output.
and key. liberty server log files can found in /logs
(that directory called logs
south of root of file system).
Comments
Post a Comment