Home  >  Article  >  Operation and Maintenance  >  Several points to note when using docker under Windows 7

Several points to note when using docker under Windows 7

不言
不言forward
2019-03-26 10:49:442675browse

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 the docker video tutorial column 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!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete