1、sudo yum install gcc
sudo yum install glibc-static
gcc -static hello.c -o hello
./hello
书写Dcokerfile文件,
from scratch
add hello /
cmd ["/hello"]
2、当前目录去找Dockerfile
docker build -t hemingway/hello-world .
1、sudo yum install gcc
sudo yum install glibc-static
gcc -static hello.c -o hello
./hello
书写Dcokerfile文件,
from scratch
add hello /
cmd ["/hello"]
2、当前目录去找Dockerfile
docker build -t hemingway/hello-world .
本文标题:docker中build创建好的image成container进
本文链接:https://www.haomeiwen.com/subject/ddswnqtx.html
网友评论