오래된 Linux Droplet은 최신 버전을 지원하지 않습니다

Digital Ocean에 아주 오래된 Linux 드롭렛이 하나 있습니다.

이 문제를 어떻게 해결할 수 있을까요?

참고로, 업데이트를 시도하기 전에 최악의 스팸 침입을 경험했습니다!

먼저 일반적인 업데이트 버튼을 시도해 보았습니다:

Tasks: TOP => assets:precompile:compress_js

(See full trace by running task with --trace)

Docker Manager: FAILED TO UPGRADE

#<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
Executing docker install script, commit: 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
Executing docker install script, commit: 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가 디스크 공간 복구까지 포함하여 업그레이드 과정을 안내해 주었습니다!

Docker를 업그레이드하려면 지원되는 버전으로 업그레이드해야 합니다. 저는 새로운 드롭렛으로 이동을 권장합니다.

그것도 또 다른 방법이지! 잘했어!

(오래된 인스턴스를 사용 중인 경우, 동일한 가격으로 더 새롭고 우수한 인스턴스 유형을 제공하는 경우가 있을 수 있습니다. 제 경우를 들면, 동일한 가격으로 RAM, 디스크, CPU가 모두 두 배씩 제공됩니다.)