Several points to note when using docker under Windows 7

不言
Release: 2019-03-26 10:51:17
forward
2742 people have browsed it

This article brings you some introductions about what you need to pay attention to when using docker under Windows 7. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. .

1. Docker toolbox is installed instead of Docker Desktop

2. Docker Toolbox is implemented by creating a virtualBox virtual machine. The virtual disk of the virtual machine is in C:\Users\username\ by default. Under .docker, if there is not much space left on your system disk, errors will occur when you use it later. You can use the virtual media management in virtualBox to move to other disks

3. Use Docker Quickstart Terminal to run the service and then turn it off (of course it can be used directly here, but I cannot copy it on this command line) and paste), then open git bash where you need to run the command

4. If your docker-compose folder is not under C:\Users\username\.docker, then you need to go to virtualBox Set up shared folders. For example, the path is D:\docker, the shared folder name is d/docker, and the fixed mount and automatic allocation are checked. After shutting down the virtual machine, just use Docker Quickstart Terminal to start it again.

5. Docker's port mapping is only mapped to the virtual machine, and port forwarding needs to be set before it can be accessed. Forward port 80 of the virtual machine to 127.0.0.2, so that you can access it using 127.0.0.2 without occupying port 80 of the local machine.

Several points to note when using docker under Windows 7

Summary: It is best to use docker desktop of win10, it is estimated that there will not be so many problems. As long as you remember that win7 docker runs under a virtual box virtual machine, many problems can be solved.

This article has ended here. For more other exciting content, you can pay attention to thedocker video tutorialcolumn on the PHP Chinese website!

The above is the detailed content of Several points to note when using docker under Windows 7. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!