How do I map volume to WSO2 API Manager Container?

  docker, wso2-am

I am using WSO2 API Manager Docker version for my API Gateway. I want to persist the files on the disk so that configurations are not lost during restarts. However, When I map the volume using docker “-v” command, WSO2 cannot find any files. Here is my complete docker command.

docker run --rm -d 
--name api-gateway 
--expose 9443 
--expose 8280 
-v /home/ubuntu/wso2am-2.6.0:/home/wso2carbon/wso2am-2.6.0 
wso2/wso2am:2.6.0

Please help me out with this.

Source: StackOverflow

LEAVE A COMMENT