Skip to content

New command to down old container and up new ones#4

Open
yyk93 wants to merge 1 commit intolock-free:masterfrom
yyk93:docker-new-deploy-up-down
Open

New command to down old container and up new ones#4
yyk93 wants to merge 1 commit intolock-free:masterfrom
yyk93:docker-new-deploy-up-down

Conversation

@yyk93
Copy link
Copy Markdown

@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