docker images 创建

2020-05-18  本文已影响0人  许某杰

编译C语言所需控件:

yum install gcc

yum install glibc-static

执行C程序:

gcc -static hello.c -o hello 

运行hello可执行文件(./hello)

通过可执行文件创建docker images(dockerfile)

创建docker images (docker build -t xiao163/hello-world .)

上一篇 下一篇

猜你喜欢

热点阅读