Uninstalling discourse instance

Helllo,

Is there comprehensive documentation available on how to uninstall discourse instance via command line?
This is required to do a clean install once again.

「いいね!」 2

According to the official installation guide, discourse lives inside its own docker container.
So, you simply need to stop the container and remove /var/discourse folder.

Steps.

  1. ssh into your vps server.
  2. cd /var/discourse
  3. ./launcher stop app
  4. ./launcher destroy app
  5. cd /var
  6. sudo rm -rf discourse
「いいね!」 1

インストールガイドまたはその他のガイドにアンインストールセクションを含めると便利です。

推奨される方法は、他に何も使用されていない新規インストールにDiscourseをインストールすることであるため、ほとんどの人がアンインストールする方法は、仮想マシンを破棄することです。

これらの手順は、最も標準的な1つのケースのためだけに設計されています。

「いいね!」 3

もちろんです。「アンインストール」は2000年代のものですよ :wink:

「いいね!」 1

面白いことに、アプリを停止して削除しようとすると、別のベースイメージをダウンロードしようとします。一体どういうことだ? :smile:

:/var/discourse> sudo ./launcher stop app
x86_64 arch detected.

WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed

Please be patient

2.0.20220818-0047: Pulling from discourse/base
Digest: sha256:7734701087766821ffb2ddcef423754798bd345c2ac0d550131c6e6905c268e8
Status: Downloaded newer image for discourse/base:2.0.20220818-0047
docker.io/discourse/base:2.0.20220818-0047
You have less than 5GB of free space on the disk where /var/lib/docker is located. You will need more space to continue
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg00-var  9.8G  4.9G  4.4G  53% /var

Would you like to attempt to recover space by cleaning docker images and containers in the system? (y/N)y
If the cleanup was successful, you may try again now
「いいね!」 2

実行したことは以下の通りです。

  1. sudo rm -rf discourse
  2. discourse を持つ Docker コンテナを見つけて、それを停止し、削除します。

他に何か必要なことがあれば教えてください。 :slight_smile:

「いいね!」 1

はい。./launcher は Discourse のベースイメージを最新の状態に保ちます。Docker に慣れている場合は、行ったように docker stop app;docker rm app を実行するだけで済みます。

「いいね!」 1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.