Skip to content

Commit 4ecea8e

Browse files
authored
Update linux-docker.md
Updated Docker install instructions and other minor formatting/information.
1 parent 5cd6971 commit 4ecea8e

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

docs/setup/operating-systems/linux-docker.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,45 +79,50 @@ If `docker ps` does not yield any running containers, then continue on with the
7979

8080
Follow these instructions even if you do not have Docker installed, just to be sure that all traces of Docker are removed from your system to avoid interference later on.
8181

82-
`sudo apt-get remove docker docker-engine docker.io containerd runc`
82+
`for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done`
8383

8484
It's ok if it reports that none of these packages are installed.
8585

8686
### Install Docker
8787

88-
1. `sudo apt-get install ca-certificates curl gnupg lsb-release`
88+
1. `sudo apt-get install ca-certificates curl`
8989

9090
This installs packages needed for the actual installation step.
9191

9292
In order to install Docker, we need to add the package repository.
9393

9494
2. Add Docker's official GPG key:
95-
`sudo mkdir -p /etc/apt/keyrings`
96-
`curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg`
95+
`sudo install -m 0755 -d /etc/apt/keyrings`
96+
`sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc`
97+
`sudo chmod a+r /etc/apt/keyrings/docker.asc`
9798

9899
3. Set up the repository:
99-
`echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null`
100+
`echo \
101+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
102+
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
103+
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null`
100104

101105
4. Update the apt index
102106
`sudo apt-get update`
103107

104108
5. Install Docker, Compose, and dependencies
105-
`sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin`
109+
`sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin`
106110

107111
### Running Docker without sudo
108112

109113
[Docker Docs Reference](https://docs.docker.com/engine/install/linux-postinstall)
110114

111115
In order to run Docker without sudo, we need to make sure the docker group is created and that the user is added to that group.
112116

113-
1. `sudo groupadd docker`
117+
1. `sudo groupadd docker` (this might tell you that the group already exists; then just move on to the next step)
114118
2. `sudo usermod -aG docker $USER`
115119
3. Log out and back in to see the changes. If you are running a virtual machine, you may need to restart the virtual machine.
116120
4. Make sure you can run docker without sudo: `docker ps`
117121

118122
## Set up the Discord bot
119123

120124
Please refer to the [Discord Bot Setup page](../discord/bot-creation/creation.md).
125+
Complete the steps there and return back to this guide.
121126

122127
## Install and set up Zeppelin
123128

@@ -157,8 +162,9 @@ This creates a folder called Zeppelin and clones the bot code there.
157162
- Get your Discord ID (an 18-20-digit number) and fill it in.
158163
- If there will be multiple people managing the bot, separate the user IDs with commas.
159164
- `DEFAULT_ALLOWED_SERVERS`: Normally servers need to be allowed before the bot can be added to it. Otherwise it leaves. This indicates the first server that the bot could be added to, where administrative commands can be run to allow other servers.
165+
- This usually will not be the server with normal members where Zeppelin will be used, but some kind of test server first.
160166
- Fill in the Discord server's ID.
161-
- `PHISHERMAN_API_KEY`: Phisherman is a live database used for identifying malicious, scam, and phishing links. Uncomment the row if you have an api key.
167+
- `PHISHERMAN_API_KEY`: Phisherman is a live database used for identifying malicious, scam, and phishing links. Uncomment the row if you have an api key and paste the api key at the end.
162168
- DEVELOPMENT: Skip the entire section
163169
- STANDALONE: Fill in this section unless you already have a MySQL database service set up that you would like to use with Zeppelin. If you don't know, you don't, and fill in this section.
164170
- STANDALONE_WEB_PORT: Leave this alone unless port 80 on the host computer is already occupied. If it is, change it to something like 81 or 82. If you change this value, go back up to DASHBOARD_URL and API_URL and add a port after the domain or IP. For example: http://zeppelin.gg:81 or http://8.8.8.8:81 for the dashboard and http://zeppelin.gg:81/api or http://8.8.8.8:81/api for the api.

0 commit comments

Comments
 (0)