You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
479 B
15 lines
479 B
docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx:alpine
|
|
docker tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx:alpine docker.io/nginx:alpine
|
|
|
|
|
|
docker build -t ds-base-web .
|
|
|
|
|
|
docker run -d -p 80:80 -v /etc/hosts:/etc/hosts ds-base-web
|
|
|
|
|
|
vi /etc/hosts
|
|
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
|
|
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
|
|
|
|
10.10.21.19 ds-base |