Skip to content

Instantly share code, notes, and snippets.

@timtan
Created March 13, 2025 07:00
Show Gist options
  • Select an option

  • Save timtan/4ebd94b1ddbc32db47711153d19c334a to your computer and use it in GitHub Desktop.

Select an option

Save timtan/4ebd94b1ddbc32db47711153d19c334a to your computer and use it in GitHub Desktop.
# 為 web01 (placeholder1) 設定標籤
docker node update --name web01 placeholder1
docker node update --label-add web=true --label-add cache=true --label-add grafana=true placeholder1
# 為 gateway01 (placeholder2) 設定標籤
docker node update --name gateway01 placeholder2
docker node update --label-add gateway=true --label-add logging_storage=true --label-add database=true placeholder2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment