简体   繁体   中英

How can I upgrade openshift origin if it is run as a docker container?

According to the document , all configuration and stored application definitions will also be removed when a container is removed if openshift origin runs as a docker container .

My question is is there way to upgrade openshift without losing the configurations if I am running the container?

You can create a Dockerfile, use the original image as a base image an run your update statements.

FROM openshift/origin

RUN your-update-statement

ENTRYPOINT ["/usr/bin/openshift"]

After that just build and run your Docker image. For more info see https://docs.docker.com/engine/reference/builder/

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