摘要:
创建一个文件夹 goWeb: [root@VM_0_8_centos goWeb]# ls Dockerfile main 将编译好的go文件main,拖到goWeb内并赋权(chmod 777 main)。 在goWeb内创建文件Dockerfile,内容如下: FROM alpine:lates 阅读全文
摘要:
windowds下编译go项目,执行如下操作时: SET CGO_ENABLED=0 set GOARCH=amd64 set GOOS=linux go build main.go set GOOS=linux这个操作的linux后面带了空格,编译器不能自动去掉空格,导致编译不过去。结束! 阅读全文
摘要:
一、查看镜像列表 [root@VM_0_8_centos test]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE test/ubuntu v1 e76cc2165488 22 hours ago 73.9MB ubuntu latest a 阅读全文