Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save humorless/0b5dda6fcffa7b13f81471bd71856609 to your computer and use it in GitHub Desktop.
Save humorless/0b5dda6fcffa7b13f81471bd71856609 to your computer and use it in GitHub Desktop.
#基本概念:
在公司develop branch裡的程式碼,會被自動做成 latest image
指令:
cd DockerCompose-OpenFalcon
sudo vim owl.yml // 把對應的image的tag改成 latest
docker-compose -f owl.yml pull fe // 假設要更新的docker image是fe
docker stop fe // 停止正在運行中的fe
docker-compose -f owl.yml up -d fe // 透過docker-compose 重新啟動fe,並且套用latest image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment