2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Docker Swarm (Swarm Mode) を止める

Posted at

Swarm Modeとは

簡単にいうとデプロイでクラスタをまたぐ機能らしいです。
KVSのようなものと認識してます

止めるには

swarm modeをはじめてしまっている場合、
止め方を説明します。
例えばこんな感じのエラーが出てしまったとします。

$ docker-compose up -d
WARNING: The Docker Engine you're using is running in swarm mode.

Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.

To deploy your application across the swarm, use `docker stack deploy`.

Starting mysql ... done
metabase is up-to-date

その場合、強制的に止めるには、こちらのコマンでいけます

$docker swarm leave --force
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?