docker中build创建好的image成container进
2019-05-01 本文已影响0人
hemingkung
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 .