# cloud-native-homework **Repository Path**: reven.an/cloud-native-homework ## Basic Information - **Project Name**: cloud-native-homework - **Description**: 极客时间云原生学习作业 - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-28 - **Last Updated**: 2021-10-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cloud-native-homework ## 介绍 极客时间云原生学习作业 ## 构建 ### Docker ```shell docker build -t alloctag/demo-httpserver:v0.1-demo . docker push alloctag/demo-httpserver:v0.1-demo ``` ## FQA **Mac Docker Desktop 中使用nsenter查看网络地址,方法如下(参考:[Docker Desktop for Mac Commands for Getting Into The Local Docker VM](https://www.bretfisher.com/docker-for-mac-commands-for-getting-into-local-docker-vm/)):** ``` docker run -it --rm --privileged --pid=host justincormack/nsenter1 nsenter -t -n ip a # 发送 http 请求 printf "GET /healthz HTTP/1.1\r\nHost: 172.17.0.2 \r\n\r\n" | nc 172.17.0.2 8000 ```