Discourse 설치 중 Docker 오류 발생

누군가 이 문제 해결을 도와줄 수 있을까요? 여러 번 시도해 보았지만 계속 이 오류가 발생합니다.
Docker를 먼저 설치한 후 표준 설치 방법을 따르는 것도 시도해 보았지만, 역시 진행을 계속할 수 없어 여기서 막혀 있습니다.

root@subsdeal:/var/discourse# ./discourse-setup
/usr/bin/docker
Failed to find docker.io or docker on your PATH.
Enter to install Docker from https://get.docker.com/ or Ctrl+C to exit
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15742  100 15742    0     0   101k      0 --:--:-- --:--:-- --:--:--  101k
# Executing docker install script, commit: 28bc4d09b3938ea30c69407d198ee8ece52c3e12
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
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
+ sh -c echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu focal stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends  docker-ce-cli docker-scan-plugin docker-ce >/dev/null
+ version_gte 20.10
+ [ -z  ]
+ return 0
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce-rootless-extras >/dev/null
+ sh -c docker version
Client: Docker Engine - Community
 Version:           20.10.8
 API version:       1.41
 Go version:        go1.16.6
 Git commit:        3967b7d
 Built:             Fri Jul 30 19:54:27 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.8
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.6
  Git commit:       75249d8
  Built:            Fri Jul 30 19:52:33 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.6
  GitCommit:        d71fcd7d8303cbf684402823e425e9dd2e99285d
 runc:
  Version:          1.0.0-rc95
  GitCommit:        b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

================================================================================

To run Docker as a non-privileged user, consider setting up the
Docker daemon in rootless mode for your user:

    dockerd-rootless-setuptool.sh install

Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.


To run the Docker daemon as a fully privileged service, but granting non-root
users access, refer to https://docs.docker.com/go/daemon-access/

WARNING: Access to the remote API on a privileged Docker daemon is equivalent
         to root access on the host. Refer to the 'Docker daemon attack surface'
         documentation for details: https://docs.docker.com/go/attack-surface/

================================================================================

/usr/bin/docker
Still failed to find docker.io or docker on your PATH.
Docker install failed. Quitting.
root@subsdeal:/var/discourse#

감사합니다

어떤 배포판을 사용 중이신가요? @uckelman 님이 도커 감지 로직을 변경하는 PR을 보내셨고, 오늘 막 병합되었습니다. 이 메시지는 해당 변경 사항에서 나오는 것이므로 관련이 있을 수 있습니다.

잠깐, 문제점을 찾았어요. 곧 수정을 제출할게요.

PR: FIX: Use the return code from which correctly - Pull Request #557 - discourse/discourse_docker - GitHub

@uckelman 님, 후속 조치해 주셔서 감사합니다!

@UnicornX 님, 다음을 시도해 볼 수 있을까요?

cd /var/discourse
git pull
./discourse-setup

지금은 정상적으로 작동합니다 @Falco
감사합니다

설치할 때 동일한 오류가 발생했지만, 아무튼 Enter 키를 눌렀습니다 (Ubuntu 22.04.1 LTS 환경에서요). 그래서 지금 테마와 컴포넌트가 작동하지 않는 건가요? (https://meta.discourse.org/t/light-theme-broke-with-update/160596/17?u=sjefromijn 참고)