官术网_书友最值得收藏!

Extending another container with FROM

Similar to our last container, our FROM nginx:latest line ensures that we are using the latest version of a base image, but instead of Ubuntu, here, we will use NGINX as our base. The latest ensures that we get the image with the latest features and often patches too at a slight risk of breakages and API incompatibility in the future.

When writing your Docker containers, you will often have to make these trade-off decisions based on your situation and stability requirements, but the NGINX API has been very stable for years now, so in this specific case, we do not need the stability that the named tags provide. If we wanted one of those tagged versions here, latest would just change to the version we wanted that is offered on Docker Hub, which we can find at https://hub.docker.com/_/nginx/ , so something like FROM nginx:1.13 would have been perfectly fine too.

主站蜘蛛池模板: 卢龙县| 灵山县| 鹤峰县| 西藏| 金堂县| 云安县| 大悟县| 全椒县| 阿克| 宁远县| 包头市| 申扎县| 博乐市| 永城市| 清苑县| 廉江市| 曲沃县| 宣恩县| 河间市| 德化县| 马边| 大庆市| 武功县| 集贤县| 桐柏县| 比如县| 洛浦县| 平罗县| 娄烦县| 丰城市| 东莞市| 类乌齐县| 绥棱县| 丰台区| 黔南| 格尔木市| 康乐县| 陕西省| 麻江县| 綦江县| 万源市|