From f3309059163b32d932da2ddd3afda8eee78a6392 Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Sun, 26 Feb 2023 14:52:09 +0000 Subject: [PATCH] doc: update docker.md (#313) * add bash debug info * Add some additional notes 32af22afaac740b967e5f922cff3b8d2b451f940 --- CONTRIBUTORS.svg | 150 +++++++++++++++++++++++------------------------ docs/docker.html | 9 +-- index.html | 9 ++- 3 files changed, 86 insertions(+), 82 deletions(-) diff --git a/CONTRIBUTORS.svg b/CONTRIBUTORS.svg index 6dd94ecd..f11413a7 100644 --- a/CONTRIBUTORS.svg +++ b/CONTRIBUTORS.svg @@ -28,82 +28,82 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/docker.html b/docs/docker.html index 0f9b7319..d00eea7c 100644 --- a/docs/docker.html +++ b/docs/docker.html @@ -41,11 +41,11 @@
-

在前台创建并运行容器

+

在前台创建并运行容器(之后如果要退出容器但是不关闭容器,按Ctrl+P+Q即可)

$ docker run -it -p --rm 8001:8080 --name my-nginx nginx
 

@@ -285,7 +285,8 @@
ExampleDescription
docker images列出镜像
docker rmi nginx删除镜像
docker load < ubuntu.tar.gz加载一个 tarred 存储库
docker load --input ubuntu.tar加载一个 tarred 存储库
docker save busybox > ubuntu.tar将镜像保存到 tar 存档
docker history显示镜像的历史
docker commit nginx my_nginx将容器另存为镜像
docker tag nginx eon01/nginx标记镜像
docker push eon01/nginx推送镜像

构建镜像

-
$ docker build .
+
# 注意有的最后面是英文 .
+$ docker build .
 $ docker build github.com/creack/docker-firefox
 $ docker build - < Dockerfile
 $ docker build - < context.tar.gz
diff --git a/index.html b/index.html
index dbdeb5db..100552fc 100644
--- a/index.html
+++ b/index.html
@@ -856,8 +856,8 @@
 
   Yan Li
 
-
-  YuGan
+
+  yikuaibro
 
 
   Zyj
@@ -865,6 +865,9 @@
 
   _lmmmmmm
 
+
+  chaos
+
 
   chyok
 
@@ -1088,7 +1091,7 @@
 
 

如果你有资源,可以很方便部署 web 版,这非常简单,只需要克隆 gh-pages 分支代码到你的静态服务就可以了,还可以使用 docker 快捷部署 web 版。

-
+