wso2 api manager docker storage

371 Views Asked by At

I have setup WSO2 API Manager docker on my windows laptop and its running fine, but the API's I have deployed are getting deleted after I recreate the container again, how can persist the storage so that APIs persistence.

1

There are 1 best solutions below

1
On

API Manager stores some artifacts in the file system. You will lose these data if you recreate the container. You can attach a volume mount when running the container as follows.

docker run -d -v $PWD/some-direcotry/:/home/wso2carbon/wso2am-3.1.0/repository/deployment/server/ wso2am:3.1.0