ruimo
ruimo

Reputation: 343

How to apply server settings for WebSphere8 running in Docker

I am evaluating application sample with WebSphere8 running in Docker. https://hub.docker.com/r/ibmcom/websphere-traditional/

Along with this tech note, I want to change some server settings. http://www-01.ibm.com/support/docview.wss?uid=swg21614221

But as you know, docker container throw away any changes in container storage once the application server is restarted.

So, my question is how can I preserve these server settings change beyond server restart, such as using docker volume.

Upvotes: 3

Views: 616

Answers (2)

ArthurDM
ArthurDM

Reputation: 403

If you want to make changes via the UI (admin console), then consider using docker commit to save your modified image and then spawn containers from that new image. https://docs.docker.com/engine/reference/commandline/commit/

Upvotes: 4

covener
covener

Reputation: 17886

You want to customize the image. The simplest way is to have your own Dockerfile with FROM ibmcom/websphere-traditional:latest then RUN whatever wsadmin commands (with -conntype NONE) you need to perform customization, including your application deployment.

Upvotes: 1

Related Questions