编译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 .)

编译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 .)
本文标题:docker images 创建
本文链接:https://www.haomeiwen.com/subject/kfkiohtx.html
网友评论