README ¶ 构建镜像 $ docker build -t httpserver:v0.1 -f Dockerfile . 打 tag $ docker tag httpserver:v0.1 liubo0127/httpserver:v0.1 上传镜像 $ docker push liubo0127/httpserver:v0.1 下载镜像 $ docker pull liubo0127/httpserver:v0.1 运行 $ docker run --name httpserver -itd liubo0127/httpserver:v0.1 获取 ip # 获取 PID,方法 1 $ lsns -t net # 获取 PID,方法 2 $ docker inspect --format "{{ .State.Pid }}" httpserver # 查看 IP $ nsenter -t 657725 -n ip a Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.