- Deployment with Docker
- Srdjan Grubor
- 257字
- 2021-07-02 23:22:12
Ensuring the latest patches are included
Our next steps, apt-get upgrade and apt-get dist-upgrade, are a bit controversial in the current Docker world, but I think they are a good addition, and I'll explain why. On a regular deb package-based Linux distribution (that is, Debian, Ubuntu, and so on), these two commands ensure that your system is fully up to date with the currently released packages for your version of the system. This means that any package that isn't the newest version will be upgraded and any obsolete packages will be replaced with newer ones. Since the general maxim of Docker is that the containers are more or less disposable, updating your container this way seems to be somewhat frowned upon, but it's not without its faults.
Since most Docker images on Docker Hub are only built when the base source files or Dockerfile itself changes, many of these images have older and/or unpatched system libraries, so when the service uses them as a dynamic library, it may be vulnerable to any bugs that have since been fixed. To ensure that we are not behind on this security hardening, we make sure that we update the system before we do anything else. While there is a small risk of the service breaking due to the system API possibly changing and there is an increase in image size due to the additional changes applied, the trade-off is, in my opinion, not good enough to leave the service unprotected, but feel free to use your best judgment here.
- 我的J2EE成功之路
- OpenStack for Architects
- 并行數(shù)據(jù)挖掘及性能優(yōu)化:關(guān)聯(lián)規(guī)則與數(shù)據(jù)相關(guān)性分析
- 計(jì)算機(jī)控制技術(shù)
- Mobile DevOps
- JMAG電機(jī)電磁仿真分析與實(shí)例解析
- Troubleshooting OpenVPN
- 聊天機(jī)器人:入門、進(jìn)階與實(shí)戰(zhàn)
- 智能生產(chǎn)線的重構(gòu)方法
- 氣動(dòng)系統(tǒng)裝調(diào)與PLC控制
- 奇點(diǎn)將至
- 人工智能:語(yǔ)言智能處理
- 軟件構(gòu)件技術(shù)
- 基于Proteus的單片機(jī)應(yīng)用技術(shù)
- 大數(shù)據(jù)素質(zhì)讀本