How to update the env properties in docker


#1

I want to update the service port with 8088,but it can’t work with below line.

$docker run -p8080:8080 -d flowable/flowable-idm --evn SERVER_PORT=8088

$docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
86f54927b7af flowable/flowable-idm “java -jar /app.war …” 4 seconds ago Up 3 seconds 0.0.0.0:8080->8080/tcp wizardly_bhaskara


#2

Hi,

I’m not sure what you’re trying to do but if you want to be able to access Flowable IDM on port 8088 you could do this by changing the exposed port mapping.

docker run -p8088:8080 flowable/flowable-idm

But if for some reason you want to change the internal port you can do it this way;

docker run -p8088:8088 -e SERVER_PORT=8088 flowable/flowable-idm

Hope this helps.

Regards,

Yvo


#4

Hi,
Thanks for your help,very useful.Regards,

Regards
Jinliang Liu