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,240 points
98 views

1 answer to this question.

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,890 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,240 points
297 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,110 points
83 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
1,048 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
214 views
+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,110 points
834 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,890 points
496 views