[+] docker init
This commit is contained in:
22
README.md
22
README.md
@@ -1,3 +1,20 @@
|
||||
#### 安装
|
||||
|
||||
```bash
|
||||
# apt + ntp
|
||||
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-apt.sh | bash
|
||||
|
||||
# docker-ce
|
||||
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-docker.sh | bash
|
||||
|
||||
# 初始化全部
|
||||
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-all.sh | bash
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#### 进入容器
|
||||
```bash
|
||||
docker compose run debian bash
|
||||
@@ -13,10 +30,7 @@ docker compose run debian ./init-apt.sh
|
||||
```bash
|
||||
docker compose run ubuntu ./init-apt.sh
|
||||
```
|
||||
##### 直接运行
|
||||
```bash
|
||||
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-apt.sh | bash
|
||||
```
|
||||
|
||||
##### docker 容器中
|
||||
```bash
|
||||
RUN --mount=type=cache,target=/var/cache/apt \
|
||||
|
||||
Reference in New Issue
Block a user