Skip to content

Commit

Permalink
doc: Update docker.md (jaywcjlove#294)
Browse files Browse the repository at this point in the history
format file: remove "。" in the forms (obsessive-compulsive disorder ...)
  • Loading branch information
Country-If authored Feb 10, 2023
1 parent e0ce750 commit 7ca89af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ docker network create -d overlay \

| Docker 语法 | 说明 |
|------------|------|
`docker search search_word` | 在 docker hub 中搜索镜像
`docker pull user/image` | 从 docker hub 下载镜像
`docker search search_word` | 在 docker hub 中搜索镜像
`docker pull user/image` | 从 docker hub 下载镜像
`docker login` | 向 docker hub 进行身份验证
`docker push user/image` | 将镜像上传到 docker hub
`docker push user/image` | 将镜像上传到 docker hub

### 镜像仓库命令
<!--rehype:wrap-class=row-span-3-->
Expand Down Expand Up @@ -312,7 +312,7 @@ $ docker volume prune
`docker-compose config` | 验证并查看 Compose 文件
`docker-compose scale <service_name>=<replica>` | 为服务指定容器个数
`docker-compose top` | 显示正在运行的进程
`docker-compose run -rm -p 2022:22 web bash` | 启动 Web 服务并运行 bash 作为其命令,删除旧容器
`docker-compose run -rm -p 2022:22 web bash` | 启动 Web 服务并运行 bash 作为其命令,删除旧容器

### Docker Services

Expand Down

0 comments on commit 7ca89af

Please sign in to comment.