Update format

Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
pull/485/head
Kang Huaishuai 2021-03-07 15:29:05 +08:00
parent 5ebd6fb6f8
commit ea00e0d82a
No known key found for this signature in database
GPG Key ID: 5E515022F565DA09
27 changed files with 39 additions and 15 deletions

View File

@ -5,6 +5,10 @@ on:
name: CI name: CI
defaults:
run:
shell: bash --noprofile --norc -exo pipefail {0}
jobs: jobs:
build: build:
name: Build name: Build
@ -39,7 +43,10 @@ jobs:
docker run -d --rm -p 4000:80 dockerpracticesig/docker_practice docker run -d --rm -p 4000:80 dockerpracticesig/docker_practice
sleep 5 sleep 5
echo "::group::Test"
curl 127.0.0.1:4000 curl 127.0.0.1:4000
echo "::endgroup::"
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push dockerpracticesig/docker_practice docker push dockerpracticesig/docker_practice
@ -139,9 +146,13 @@ jobs:
docker push dockerpracticesig/docker_practice:vuepress docker push dockerpracticesig/docker_practice:vuepress
docker run -it --rm -d -p 4000:80 dockerpracticesig/docker_practice:vuepress docker run -it --rm -d -p 4001:80 dockerpracticesig/docker_practice:vuepress
curl 127.0.0.1:4000 sleep 5
echo "::group::Test"
curl 127.0.0.1:4001
echo "::endgroup::"
env: env:
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}} DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}

View File

@ -1,4 +1,5 @@
# 访 # 访
访 Linux `iptables` `iptables` Linux 访 Linux `iptables` `iptables` Linux
## 访 ## 访

View File

@ -1,4 +1,5 @@
# #
## pipework ## pipework

View File

@ -1,4 +1,5 @@
# #
Docker Docker
* `Image` * `Image`
* `Container` * `Container`

View File

@ -1,4 +1,5 @@
# Debian/Ubuntu # Debian/Ubuntu
`Debian` `Ubuntu` **Debian ** `Docker Hub` `Debian` `Ubuntu` **Debian ** `Docker Hub`
## Debian ## Debian

View File

@ -1,4 +1,5 @@
# Docker # Docker
Docker Docker

View File

@ -1,4 +1,4 @@
### ADD # ADD
`ADD` `COPY` `COPY` `ADD` `COPY` `COPY`

View File

@ -1,4 +1,4 @@
### ARG # ARG
`ARG <参数名>[=<默认值>]` `ARG <参数名>[=<默认值>]`

View File

@ -1,4 +1,4 @@
### CMD # CMD
`CMD` `RUN` `CMD` `RUN`

View File

@ -1,4 +1,4 @@
### COPY # COPY

View File

@ -1,4 +1,4 @@
### ENTRYPOINT # ENTRYPOINT
`ENTRYPOINT` `RUN` `exec` `shell` `ENTRYPOINT` `RUN` `exec` `shell`

View File

@ -1,4 +1,4 @@
### ENV # ENV

View File

@ -1,4 +1,4 @@
### EXPOSE # EXPOSE
`EXPOSE <端口1> [<端口2>...]` `EXPOSE <端口1> [<端口2>...]`

View File

@ -1,4 +1,4 @@
### HEALTHCHECK # HEALTHCHECK

View File

@ -1,4 +1,4 @@
### ONBUILD # ONBUILD
`ONBUILD <其它指令>` `ONBUILD <其它指令>`

View File

@ -1,4 +1,4 @@
### #
* `Dockerfie` https://docs.docker.com/engine/reference/builder/ * `Dockerfie` https://docs.docker.com/engine/reference/builder/

View File

@ -1,4 +1,4 @@
### USER # USER
`USER <用户名>[:<用户组>]` `USER <用户名>[:<用户组>]`

View File

@ -1,4 +1,4 @@
### VOLUME # VOLUME

View File

@ -1,4 +1,4 @@
### WORKDIR # WORKDIR
`WORKDIR <工作目录路径>` `WORKDIR <工作目录路径>`

View File

@ -1,4 +1,5 @@
# #
**Docker** **Docker**
**Docker** **Docker**

View File

@ -1,4 +1,5 @@
# #
Docker : Docker :
* *

View File

@ -1,4 +1,5 @@
# #
Linux Linux
CPU IO 使 CPU IO 使

View File

@ -1,4 +1,5 @@
# Docker # Docker
Docker Docker root Docker Docker root
访 Docker Docker 访`/` `/host` 访 Docker Docker 访`/` `/host`

View File

@ -1,4 +1,5 @@
# #
Docker LXC `docker run` Docker Docker LXC `docker run` Docker

View File

@ -1,4 +1,5 @@
# #
使 Docker TOMOYO, AppArmor, Seccomp, SELinux, GRSEC 使 Docker TOMOYO, AppArmor, Seccomp, SELinux, GRSEC
Docker Docker Docker Docker

View File

@ -1,4 +1,5 @@
# #
Docker 使 root Docker 使 root
使 [Apparmor](https://docs.docker.com/engine/security/apparmor/), [Seccomp](https://docs.docker.com/engine/security/seccomp/), SELinux, GRSEC 来增强安全性;甚至自己在内核中实现更复杂的安全机制。 使 [Apparmor](https://docs.docker.com/engine/security/apparmor/), [Seccomp](https://docs.docker.com/engine/security/seccomp/), SELinux, GRSEC 来增强安全性;甚至自己在内核中实现更复杂的安全机制。

View File

@ -1,4 +1,5 @@
# #
Linux Linux
## pid ## pid