Skip to content

Conversation

@yyk93
Copy link

@yyk93 yyk93 commented Sep 14, 2020

Here are the commands that I thought of:
// copy old yml file to another file and use it to down the services
cp ${dockerComposeYml} ${oldDockerComposeYml} && docker-compose -f ${oldDockerComposeYml} down

//use new yml file to up service
docker-compose build -f ${dockerComposeYml} --force-rm && docker-compose up -d && docker system prune -f

Some questions:

  • Do we need to remove the old docker-compose.yml after downing the system?
  • how do we conduct a test for the new script?

Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant