How to change Docker default folder

  • Hi

    How can I change the default Docker folder so that all the containers are installed on a USB drive and not on the system drive?

  • In docker there are three basic concepts: (1) image (2) container (3) service configuration and data. Storage of images and containers are managed by docker, storage of configuration and service data is managed by the user during the container creation process.

    I may be speaking Chinese so keep studying here

  • I never tried personally ,but it may be possible by editing :


    This is the line that yiu should try to modify ,by replacing the default path with your external drive: