docker
docker
vague questions are often not necessarily a bad one. Although I have been using docker for some time, at first glance, let me answer the difference between docker and ordinary virtual machine, but I really haven't studied it carefully. With this question, I searched for it and probably got some sense. Let me try to give a simple answer as follows:
Docker uses the container technology based on the Linux operating system itself. The container technology is different from the virtual machine in that the container is simply isolated and does not provide very low-level operating system functions, so the system in Docker must be exactly the same or similar to the host operating system. It is a Linux system, and cannot run Windows Docker on the Linux system. For an introduction to LXC, take a look at the article (Docker later switched to runC, but the principle is similar). Generally speaking, this is true, but as Docker's market share grows, manufacturers gradually begin to wonder if they can run different operating systems on different operating systems. For example, the first is Docker? that runs Linux on Windows. This is already possible, and a Docker, running Windows on Linux is now under development, so nothing is absolute.
so what are the benefits of this container technology based on the host operating system? Suppose you have an operating system that takes up 1 gigabyte of hard disk space, and if you use a virtual machine, you need 100 gigabytes of hard disk space to start 100 such virtual machines, while if you use Docker, 1000 containers only take up a little more space than 1 gigabyte, assuming that all 1000 containers use the same operating system. So do you see the difference? In other words, if you need a strictly isolated operating system, then you need to use a virtual machine, but if you don't care whether the underlying operating system is isolated, as long as they work, you can use Docker, because for Docker, the underlying operating system files are shared and do not take up space.
in addition to not taking up space, the startup speed of Docker is also seconds, or even less than a second. If you want to start a virtual machine, it is equivalent to starting a complete operating system, so the startup speed will be slow, but the boot speed of Docker is quite fast.
at the same time in Docker, you can also make your own image based on the original operating system image, assuming that the original operating system image you downloaded is 1G, and you made some changes based on it, adding 50m content, then the new image you created based on it is not 1GB 50m, but only 50m, this is because the bottom layer of Docker helps you to do isolation, your image file only takes up that part of the incremental space. And if you are on the basis of the virtual machine to do the transformation to generate a new virtual machine, then the hard disk takes up at least double the space.
the above is probably the difference between Docker and virtual machine, and what is used needs to be analyzed on a case-by-case basis.
Stack Overflow has an answer that will answer your question.
from-a-normal-virtual-machine" rel=" nofollow noreferrer "> https://stackoverflow.com/que.
in order to facilitate development, we plan to create a LNMP environment based on docker, which makes it much more convenient to change computers or unify the team s development environment. choreographed a docker-compose.yaml file with nginx, php-fp...
pulled the image of apache zeppelin and wanted the container to use the local ApacheDS for login management. the conf shiro.ini file of zeppelin needs to be configured at this time. I tried to enter the container to modify the configuration file, but...
I pull an image of hadoop, and I install jupyter, in it. I used to do data analysis, so I m used to using this tool. Now I want to learn about spark, in docker and plan to log on to jupyter on the host machine using a browser. But no matter how I specif...
my code is mapped through volumes. I changed the host time today and found that the changed code has no effect. I think it is not timely to update the mapping relationship, resulting in running the old code, changing the time correctly, and working norma...
docker exec-it-sharp container id bin sh after I enter -sharp how to press delete if I typed the wrong command? Deletion will directly change to ^ H symbol ...
the image of centos7 starting springboot always indicates that the port is occupied, but I m pretty sure that the port is not occupied, and the other port is still occupied which god knows what s going on ...
my docker for windows, runs on gitbash: docker D what should be done ...
recently I wanted to run laravel, with docker, so I searched docker hub and found this image . so I only share app and public according to the document given by him. There is no exception in external access, but I will report an error about missing p...
applications: image: tianon true nginx: build: context: . nginx args: - PHP_UPSTREAM_CONTAINER=${NGINX_PHP_UPSTREAM_CONTAINER} - PHP_UPSTREAM_PORT=${NGINX_PHP_UPSTREAM_PORT} volumes_from: - applications volumes: - ...
recently my docker container always closes automatically. then I open it with docker start < Container name >. I would like to ask if you still want "- what parameters "? this has never been the case before. ...
now I have a code for cloud disk service with port 8089. Now I want to instance two containers on one server, and then map container port 8089 to host 8080808081, but the cloud disk service in both containers is port 8089, and the port registered to eure...
the php project is deployed on docker. The master node returns the websocket server built by Swoole at port 10028 and listens on port 9502. The client failed to connect using IP plus port 9502. How to solve this problem ...
< H2 > description < H2 > normal if PHP, is installed on the system, if you want to run a php script directly, php a.php can see the result. how do I execute an a.php script if I use a docker build image? ...
Springboot application visits database. Error: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any enter the con...
I ve just read some introductory articles on docker, but I m still not sure whether it s appropriate to use docker to deploy a PHP project. For example, it is obviously inappropriate to package a project into a container as a virtual machine, and the ...
encountered this problem when using docker: my php project uses composer to install extensions. I want to update every time I run docker, and also run php start.php . This results in two commands composer update and php start.php in the cmd of th...
Today, I downloaded version 1.12.6 of docker, via yum using Ali CVM, and then downloaded a nginx image using docker. there is no problem at this time, but when you use docker run to create a nginx container, you will disconnect the Xshell remote conne...
Docker enters the jupyter all-spark-notebook container to change the password. Error: jovyan@67c686087c2d:~$ jupyter notebook password Enter password: Verify password: Traceback (most recent call last): File " opt conda bin jupyter-notebook&qu...
just get rid of the Chinese comments. How to solve the system environment windows10,? ...
refer to Docker Chinese official image acceleration with a domestic mirror source, but it has not worked. Using docker pull or visiting foreign warehouses > docker info ...... Server Version: 17.04.0-ce Kernel Version: 4.4.0-97-generic Operating S...