-
Notifications
You must be signed in to change notification settings - Fork 0
/
change-the-default-docker-storage-location.html
42 lines (40 loc) · 1.55 KB
/
change-the-default-docker-storage-location.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html class="no-js" lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Change the default Docker storage location ~ notsatoshi.xyz</title>
<meta property="og:title" content="Change the default Docker storage location" />
<meta name="author" content="notsatoshi.xyz" />
<meta property="og:locale" content="en_US" />
<link rel="canonical" href="https://notsatoshi.xyz/change-the-default-docker-storage-location.html" />
<meta property="og:url" content="https://notsatoshi.xyz/change-the-default-docker-storage-location.html" />
<meta property="og:site_name" content="notsatoshi.xyz" />
<meta property="og:type" content="article" />
<meta property="article:published_time" content="2022-09-11T00:00:00+01:00" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<main class="main-content">
<h1><a href="https://notsatoshi.xyz">notsatoshi.xyz</a></h1>
<h2>Change the default Docker storage location</h2>
<p>
You need to create a JSON file <i>/etc/docker/daemon.json</i> with the content pointing to the new storage location:
<pre style="text-align: left;">
{
"data-root": "/mnt/newlocation"
}
</pre>
You can read more about daemon.json in the <a href="https://docs.docker.com/config/daemon/">Docker documentation</a>.
</p>
</main>
<footer>
<pre>
\
\ /\
( )
.( o ).
</pre>
</footer>
</body>
</html>