-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall_docker.sh
More file actions
118 lines (84 loc) · 3.73 KB
/
install_docker.sh
File metadata and controls
118 lines (84 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/bin/sh
clear
echo "
_____ _ _ _ _
| |___ ___ ___| |_ ___ _| | | |_ _ _ |_|
| --| _| -_| .'| _| -_| . | | . | | | _
|_____|_| |___|__,|_| |___|___| |___|_ | |_|
|___|
_____ _ _ _ _ _____ __ _____
| | |_ ___|_|___| |_ ___ ___| |_ ___ ___ | |__| | | __|___ ___ _ _
| --| | _| |_ -| _| . | . | | -_| _| | | | | | | | | | _| .'| | |
|_____|_|_|_| |_|___|_| |___| _|_|_|___|_| |_|_|_|_____| |_____|_| |__,|_ |
|_| |___|
Version: 1.6.3
Last Updated: 3/23/2026
wget https://raw.githubusercontent.com/c2theg/srvBuilds/refs/heads/master/install_docker.sh && chmod u+x install_docker.sh && ./install_docker.sh
Downloading required dependencies...
"
#--------------------------------------------------------------------------------------------
sudo apt-get update
sudo apt-get install -y apt-transport-https software-properties-common ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=\"$(dpkg --print-architecture)\" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
\"$(. /etc/os-release && echo "$VERSION_CODENAME")\" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# curl -fsSL https://get.docker.com/ | sh
sudo -E apt-get update
sudo -E apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-model-plugin
sudo -E apt install -y docker-compose
#-- download logging config --
wget -P /etc/docker/ https://raw.githubusercontent.com/c2theg/srvBuilds/refs/heads/master/docker/daemon.json
#-------------------------------------
sudo systemctl start docker
sudo systemctl enable docker
echo "
Done - Showing Versions
"
docker --version
docker-compose -v
#-- add premissions to current user to access: docker.sock --
sudo usermod -aG docker $USER
#------------------------------------------------------------
#----- Arcane ----------------
echo "
Installing Arcane
- GitHub -https://github.com/getarcaneapp/arcane?tab=readme-ov-file
- Docker Hub - https://hub.docker.com/r/getarcaneapp/arcane
- https://getarcane.app/docs/setup/installation
- Docs: https://github.com/getarcaneapp/arcane
Access Arcane: http://<Server IP>:3552
Default Username: arcane
Password: arcane-admin
"
# Install:
curl -fsSL https://getarcane.app/install.sh | bash
#------------------------------------------------------------------------------------
echo "
To install container: Portainer (arcane is better).. leaving this just incase
docker pull portainer/portainer-ce:latest
docker volume create portainer_data
docker run \
--name 'Portainer1' \
-p 8000:8000 \
-p 9443:9443 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
--restart=always \
-d portainer/portainer-ce:latest
Visit: https://<server ip>:9443/ to access Portainer
"
docker ps
echo "
DONE!
For your user to access docker ps, you need to restart this session
"
# Reset Portainer Username: https://omar2cloud.github.io/rasp/psswd/
#---- Other good tools ----
# docker stats
#-- https://hub.docker.com/r/nicolargo/glances
# docker pull nicolargo/glances
#--