提交docker安装脚本
This commit is contained in:
1 parent
65d83326a7
commit
ab4bf16f29
2 files changed
+27
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# 快捷脚本
|
||||
|
||||
|
||||
|
||||
|
||||
# docker
|
||||
## 安装docker
|
||||
```sh
|
||||
sudo wget https://gitea.youmetme.wang/youmetme/script/raw/branch/main/docker/docker_ubuntu_install.sh | bash
|
||||
```
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo apt update
|
||||
sudo apt install ca-certificates curl
|
||||
sudo install -m 0755 -d /etc/apt/keyrings
|
||||
|
||||
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && sudo chmod a+r /etc/apt/keyrings/docker.asc
|
||||
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
||||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
|
||||
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
|
||||
sudo apt update
|
||||
|
||||
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
Reference in new issue
Block a user