DIY base image

創建hello world目錄,編寫hello.c c語言文件 安裝gcc和glibc-static 生成可執行文件hello,執行該文件 通過Dockerfile將文件打成docker image FROM scratch ADD hello / 將hello文件放到根目錄裏 CMD [’’/hello’’] 運行hello build image 6.docker build -t
相關文章
相關標籤/搜索