search

Home  >  Q&A  >  body text

docker-images - docker镜像理解的一点疑惑

小的是刚学习docker ,现在有个困惑求教下大家:

我对docker的理解是: 比如 我做了一个网站(tomcat服务),把网站(可能设计数据库)放到了镜像里,把镜像做好,放到服务器上,如果有一天我的服务器(阿里云)过期了。我如果在去找个其他的服务器,是不是我把这个镜像直接打到新的服务器上了,说白了就是,我不在配置什么环境变量了?

漂亮男人漂亮男人2774 days ago793

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-25 09:04:24

    Docker, container, contains your entire development and running environment, which can be compared to a system image. Once the system is installed, office, browser, etc. are available. You take out the docker image and put it on other servers, or even your own computer. , the development environment is still there, and there is no need to build the environment yourself. One day a new colleague comes to the company, just give him your company's docker image, and he doesn't have to build an environment by himself. Online, colleagues use the same docker image, and the development environment is the same, so there won't be some environment differences. Same problem.

    reply
    0
  • Cancelreply