Results 1 to 4 of 4

Thread: How to move Docker images location

  1. #1

    Default How to move Docker images location

    I'm willing to move the image location for Docker, from its original place in "/var/lib/docker/" to another partition, I was thinking "/home/docker-data/".

    How can I do that? I found some guides, but I don't know if these are relevant to openSUSE or up to date with the latest Docker versions.

    I've read that I should also set a Storage Driver, how?

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    13,327
    Blog Entries
    3

    Default Re: How to move Docker images location

    I would guess that you can do it with a symbolic link.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    12,025
    Blog Entries
    2

    Default Re: How to move Docker images location

    Should be in the MAN pages, and configurable in a Docker config file
    (Not looking for it now).

    If you can't find the setting there, post again and I'll find it.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  4. #4

    Default Re: How to move Docker images location

    Like this:
    Code:
    dell-koen:/home/koen # cat /etc/sysconfig/docker      
    
    ## Path           : System/Management
    ## Description    : Extra cli switches for docker daemon
    ## Type           : string
    ## Default        : ""
    ## ServiceRestart : docker
    #
    DOCKER_OPTS="-s devicemapper -g /home/koen/docker-data"
    
    

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •