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

The idea behind Docker

The idea behind Docker is to pack an application with all the dependencies it needs into a single, standardized unit for the deployment. Those dependencies can be binaries, libraries, JAR files, configuration files, scripts, and so on. Docker wraps up all of it into a complete filesystem that contains everything your Java application needs to run the virtual machine itself, the application server such as Wildfly or Tomcat, the application code, and runtime libraries, and basically everything you would install and deploy on the server to make your application run. Packaging all of this into a complete image guarantees that it is portable; it will always run in the same way, no matter what environment it is deployed in. With Docker, you can run Java applications without having to install a Java runtime on the host machine. All the problems related to incompatible JDK or JRE, wrong version of the application server, and so on are gone. Upgrades are also easy and effortless; you just run the new version of your container on the host.

If you need to do some cleanup, you can just destroy the Docker image and it's as though nothing ever happened. Think about Docker, not as a programming language or a framework, but rather as a tool that helps in solving the common problems such as installing, distributing, and managing the software. It allows developers and DevOps to build, ship, and run their code anywhere. Anywhere means also on more than one machine, and this is where Kubernetes comes in handy; we will shortly get back to it.

Having all of your application code and runtime dependencies packaged as a single and complete unit of software may seem the same as a virtualization engine, but it's far from that, as we will explain now. To fully get to know what Docker really is, first we need to understand the difference between traditional virtualization and containerization. Let's compare those two technologies now.

主站蜘蛛池模板: 双桥区| 定边县| 大连市| 凯里市| 马尔康县| 金沙县| 湘乡市| 鹿邑县| 威宁| 栖霞市| 万源市| 基隆市| 扶绥县| 元阳县| 额敏县| 温州市| 佳木斯市| 进贤县| 广德县| 驻马店市| 龙州县| 山阳县| 古丈县| 汾西县| 凤阳县| 肥东县| 铁岭县| 张北县| 宜黄县| 大英县| 葫芦岛市| 新巴尔虎左旗| 砚山县| 马龙县| 泾阳县| 稻城县| 布尔津县| 永吉县| 镇原县| 蒲城县| 永定县|