§2024-08-19
¶setup hc4Boble.yushei.net as
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
alexlai@hc4noble:~$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1 ext4 1.0 b6593968-50d8-4e4c-8809-f6d409e0260c 851M 3% /boot
├─sda2 swap 1 aacc1731-4180-4454-914d-2d9149d20922 [SWAP]
├─sda3 ext4 1.0 35f61035-aec7-4cf4-a52e-499bc1aae766 54.3G 2% /
└─sda4 xfs 15fc83ae-c7f3-434d-9d82-0377d8f0ce77 163.6G 1% /opt/xfs
¶Deploy with Docker & Docker Compose
- Preparation steps
- Install Docker and Docker Compose
- Ensure you have Docker and Docker-compose (v2 is required) installed and operational. If you don't have them installed, you can conveniently set them up using Docker's official helper script:
$ curl -L https://get.docker.com | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 21596 100 21596 0 0 95191 0 --:--:-- --:--:-- --:--:-- 95557
# Executing docker install script, commit: 0d6f72e671ba87f7aa4c6991646a1a5b9f9dae84
+ sudo -E sh -c apt-get update -qq >/dev/null
[sudo] password for alexlai:
+ sudo -E sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq ca-certificates curl >/dev/null
+ sudo -E sh -c install -m 0755 -d /etc/apt/keyrings
+ sudo -E sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" -o /etc/apt/keyrings/docker.asc
+ sudo -E sh -c chmod a+r /etc/apt/keyrings/docker.asc
+ sudo -E sh -c echo "deb [arch=arm64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble stable" > /etc/apt/sources.list.d/docker.list
+ sudo -E sh -c apt-get update -qq >/dev/null
+ sudo -E sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin >/dev/null
Client: Docker Engine - Community
Version: 27.1.2
API version: 1.46
Go version: go1.21.13
Git commit: d01f264
Built: Mon Aug 12 11:53:45 2024
OS/Arch: linux/arm64
Context: default
Server: Docker Engine - Community
Engine:
Version: 27.1.2
API version: 1.46 (minimum version 1.24)
Go version: go1.21.13
Git commit: f9522e5
Built: Mon Aug 12 11:53:45 2024
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.7.20
GitCommit: 8fc6bcff51318944179630522a095cc9dbf9f353
runc:
Version: 1.1.13
GitCommit: v1.1.13-0-g58aa920
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/
================================================================================
- To run Docker commands without using sudo, add the current user to the Docker group. If you are unsure who the user is, check the current user by running:
$ whoami
alexlai
$ sudo usermod -aG docker $USER
$ id alexlai
uid=1026(alexlai) gid=1026(alexlai) groups=1026(alexlai),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),100(users),107(lpadmin),108(sambashare),989(docker)
$ sudo reboot now
¶Deploy Rocket.Chat on Docker
- Fetch the compose file
- Go to your preferred directory and create a compose.yml file and copy the content from our example.
- Alternatively, you can use the curl command to download the example compose.yml file by executing this command:
curl -L https://raw.githubusercontent.com/RocketChat/Docker.Official.Image/master/compose.yml -O
$ mkdir -p ~/build/Dcokerfile && cd $_
$ curl -L https://raw.githubusercontent.com/RocketChat/Docker.Official.Image/master/compose.yml -O
$ ls
compose.yml