古い Linux ドロップレットはより新しいものをサポートしていません

DigitalOcean の非常に古い Linux ドロップレットがあります。

これをどのように修正できますか?

ちなみに、アップデートを試す前に、史上最悪のスパム感染に悩まされました!

まず、通常のアップデートボタンを試しました。

Tasks: TOP => assets:precompile:compress_js

(タスクを --trace を付けて実行して完全なトレースを確認してください)

Docker Manager: アップグレードに失敗しました

#<RuntimeError: RuntimeError>

/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:210:in `run’

/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:111:in `upgrade’

/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:19:in `block in ’

/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `fork’

/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `’

次にログインして、古い方法でアプリを再構築しようとしました。

root@forum:/var/discourse# ./launcher rebuild app

ERROR: Docker version 18.09.0 not supported, please upgrade to at least 20.10.0, or recommended 24.0.7
root@forum:/var/discourse# wget -qO- https://get.docker.com/ | sh

Docker インストールスクリプトを実行中、コミット: 0d6f72e671ba87f7aa4c6991646a1a5b9f9dae84

Warning: the “docker” command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we’re displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

そして、dockerをインストールしようとしました

root@forum:/var/discourse# wget -qO- https://get.docker.com/ | sh

Docker インストールスクリプトを実行中、コミット: 0d6f72e671ba87f7aa4c6991646a1a5b9f9dae84

Warning: the “docker” command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we’re displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

You may press Ctrl+C now to abort this script.

  • sleep 20

DEPRECATION WARNING
This Linux distribution (ubuntu bionic) reached end-of-life and is no longer supported by this script.
No updates or security fixes will be released for this distribution, and users are recommended
to upgrade to a currently maintained version of ubuntu.

ChatGPT helped me through the upgrade, including recovering disk space!

「いいね!」 1

サポートされているバージョンにアップグレードする必要があります。Dockerをアップグレードしてください。新しいドロップレットへの移行をお勧めします。

「いいね!」 3

でも、それも一つのやり方ですね!よくできました!

(非常に古いインスタンスを使用する際の注意点として、プロバイダーが同じ価格で、より新しく、より優れたインスタンスタイプを提供している可能性があります。私の場合は、RAM、ディスク、CPUが2倍になり、価格は同じでした。)

「いいね!」 3