简体   繁体   中英

Error coming while deploying carbon application of WSO2 MI on Docker Container

I am deploying carbon application (car file) of a service I made on docker. When I checked the logs after running command 'docker-compose up -d'. I am getting an error.

The error is below:

 Error while deploying carbon application /home/wso2carbon/wso2mi-4.0.0/repository/deployment/server/carbonapps/OBDCompositeExporter_1.0.0.car org.wso2.micro.core.util.CarbonException: Error while extracting Carbon Application : OBDCompositeExporter_1.0.0.car

/home/wso2carbon/wso2mi-4.0.0/repository/deployment/server/carbonapps/OBDCompositeExporter_1.0.0.car (Permission denied)

Can anyone please help me how to resolve this issue. Thanks

Assuming you are copying the Capps while building the Docker image. In your Dockerfile when copying the capps copy them like below, changing the owner of the files.

COPY --chown=wso2carbon:wso2 capps ${WSO2_SERVER_HOME}/repository/deployment/server/carbonapps/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM