Where are Docker images stored on the host machine?

后端 未结 29 1636
逝去的感伤
逝去的感伤 2020-11-22 06:28

I managed to find the containers under directory /var/lib/docker/containers, but I can\'t find the images.

What are the directories and files under

29条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 07:11

    Expanding on Tristan's answer, in Windows with Hyper-V you can move the image with these steps from matthuisman:

    In Windows 10,

    1. Stop docker etc
    2. Type "Hyper-V Manager" in task-bar search box and run it.
    3. Select your PC in the left hand pane (Mine is called DESKTOP-CBP**)
    4. Right click on the correct virtual machine (Mine is called MobyLinuxVM)
    5. Select "Turn off" (If it is running)
    6. Right click on it again and select "Move"
    7. Follow the prompts

提交回复
热议问题