httpserver

command
v0.0.0-...-68b8cf9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

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

获取 PID 获取 IP

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL