- Deployment with Docker
- Srdjan Grubor
- 353字
- 2021-07-02 23:22:09
rkt
rkt, often written as Rocket, is the closest competing application containerization platform from CoreOS that was started as a more secure application container runtime. Over time, Docker has closed a number of its security failings but unlike rkt, which runs with limited privileges as a user service, Docker's main service runs as root. This means that if someone manages to break out of the Docker container, they will automatically have full access to the host's root, which is obviously a really bad thing from an operations perspective while with rkt, the hacker would also need to escalate their privilege from the limited user. While this comparison here isn't painting Docker in great light from a security standpoint, if its development trajectory is to be extrapolated, it is possible and likely that this issue will be heavily mitigated and/or fixed in the future.
Another interesting difference is that unlike Docker, which is designed to run a single process within the container, rkt can run multiple processes within a container. This makes deploying multiple services within a single container much easier. Now, having said that, you actually can run multiple processes within a Docker container (we will cover this at a later point in the book) but it is a great pain to set that up properly but I did find in practice that the pressure to keep services and containers based on a single process really pushes the developer to create containers as true microservices instead of treating them as mini VMs so don't consider this necessarily as a problem.
While there are many other smaller reasons to choose Docker over rkt and vice versa, one massive thing cannot be ignored: the rate of adoption. While rkt is a bit younger, Docker has been adopted by almost all big tech giants, and there doesn't seem to be any sign of stopping the trend. With this in mind, if you need to work on microservices today, the choice is probably very clear but as with any tech field, the ecosystem may look much differently in a year or even just a couple of months.
- Seven NoSQL Databases in a Week
- 手把手教你玩轉RPA:基于UiPath和Blue Prism
- 大學計算機應用基礎
- 永磁同步電動機變頻調速系統及其控制(第2版)
- 基于32位ColdFire構建嵌入式系統
- 變頻器、軟啟動器及PLC實用技術260問
- 學會VBA,菜鳥也高飛!
- Docker on Amazon Web Services
- 計算機組網技術
- Python文本分析
- Unreal Development Kit Game Design Cookbook
- Creating ELearning Games with Unity
- 企業級Web開發實戰
- Access 2007數據庫入門與實例應用金典
- 實戰突擊