Upgrading a service leads to Rancher losing persistence of environment variables

0 votes

I am using rancher-compose for upgrading my services. I  have set an environment variable and then I am running the compose command over the terminal. After the upgrade, the environment variable I initialized previously in the UI is not there anymore.

The rancher-compose command that I am using is:

rancher-compose -p [my_stack_name] --url ${RANCHER_ENDPOINT} --access-key ${ACCESS_KEY} --secret-key ${SECRET_KEY} up -d --pull --upgrade --confirm-upgrade
Can anyone help me with this?
Apr 27, 2018 in DevOps & Agile by Atul
• 10,200 points
61 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

when you upgrade, what it will do is, it will do the service match the definition in the compose file that is provided by you. If you are changing things in the UI and not changing your compose file, they will be gone.

I hope that it will let you resolve your problem.

answered Apr 27, 2018 by shubham
• 6,500 points

Related Questions In DevOps & Agile

+5 votes
2 answers

How to program and get the Digital Ocean ID of the current Droplet from within the Droplet?

You can run curl http://169.254.169.254/metadata/v1/id within the ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by Atul
• 10,200 points
122 views
+1 vote
2 answers

How do I run Apache server from Docker without mapping to a location?

If you're seeing a 500 error, that's ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by lina
• 8,100 points
50 views
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
631 views
+13 votes
2 answers
+1 vote
2 answers

is it possible to assign a Feature/User Story/Task to a team [Group] in VSTS

In most cases, we would break Work ...READ MORE

answered Oct 11, 2018 in DevOps & Agile by lina
• 8,100 points
420 views
+5 votes
2 answers

Wildfly Swarm: Specific configuration of the Keycloak Backend environment

I worked on a swarm project which ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by shubham
• 6,500 points
324 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.