Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[docker] is any way to save armbian-ccache and armbian-cache not in /var folder?

Featured Replies

when build armbian via docker "proces will create and run a named Docker container armbian with 2 named volumes armbian-cache and armbian-ccache" and store it in /var. My root amount is not over 40Gb and it will be good thing to store armbian-cache and armbian-ccache in different place

You could mount a different volume at the place those directories are.  Might even work with a symlink

 

  • Author

found solution

First create directory and file for custom configuration:

sudo mkdir -p /etc/systemd/system/docker.service.d sudo $EDITOR /etc/systemd/system/docker.service.d/docker-storage.conf

For docker version before 17.06-ce paste:

[Service] ExecStart= ExecStart=/usr/bin/docker daemon -H fd:// --graph="/mnt"

For docker after 17.06-ce paste:

[Service] ExecStart= ExecStart=/usr/bin/dockerd -H fd:// --data-root="/mnt"

Alternative method through daemon.json

I recently tried above procedure with 17.09-ce on Fedora 25 and it seem to not work. Instead of that simple modification in /etc/docker/daemon.json do the trick:

{ "graph": "/mnt", "storage-driver": "overlay" }

Despite the method you have to reload configuration and restart Docker:

sudo systemctl daemon-reload sudo systemctl restart docker

To confirm that Docker was reconfigured:

docker info|grep "loop file"

In recent version (17.03) different command is required:

docker info|grep "Docker Root Dir"

Output should look like this:

Data loop file: /mnt/devicemapper/devicemapper/data Metadata loop file: /mnt/devicemapper/devicemapper/metadata

Or:

Docker Root Dir: /mnt

Then you can safely remove old Docker storage:

rm -rf /var/lib/docker

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.