docker 環境下build RHEL8 kernel

爲了少折騰 編譯環境,研究了一下可以使用docker 把編譯環境搭建好
之後 換系統可以隨時pull 這個image ,並掛載本地volume 到docker 下做編譯開發.

簡單記錄一下步驟

podman pull registry.redhat.io/ubi8/ubi

podman tag registry.redhat.io/ubi8/ubi registry.redhat.io/ubi8:build
在這裏插入圖片描述
之後就可以隨意配置編譯環境 並commit 進自己的build tag 下保存起來

簡單方便的環境就完成了。
這裏不使用Dockfile

helpful links:
https://catalog.redhat.com/software/containers/detail/5b9c1244bed8bd6ee8196343?container-tabs=gti&gti-tabs=get-the-source

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/building_running_and_managing_containers/index

https://blog.csdn.net/weixin_41282397/article/details/84937240

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章