Added notes

This commit is contained in:
2023-04-28 12:38:36 -04:00
parent 95a1dcb604
commit 269fa59d39
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
# How to move the default /var/lib/docker to another directory for Docker on Linux?
[How to move the default /var/lib/docker to another directory for Docker on Linux? | DigitalOcean](https://www.digitalocean.com/community/questions/how-to-move-the-default-var-lib-docker-to-another-directory-for-docker-on-linux)
- Stop the server: `sudo systemctl stop docker`
- Create/edit the configuration at `/etc/docker/daemon.json`, for example: `{ "data-root": "/new/path/docker-data-root" }`
- Copy your data there:
```shell
sudo cp -axT /var/lib/docker /new/path/docker-data-root
```
(if the target `docker-data-root` directory already exists, make sure you dont accidentally copy into a `docker` subdirectory).
- Start the server:
```shell
sudo systemctl start docker
```
- Check everything works:
```shell
sudo docker images
```

View File

@@ -0,0 +1,18 @@
# Glow - CLI Markdown Renderer
```shell
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/charm.gpg
echo "deb [signed-by=/usr/share/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt update
sudo apt install glow
```
Or copy/paste this one-liner
```shell
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/charm.gpg && echo "deb [signed-by=/usr/share/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list && sudo apt update && sudo apt install glow
```
---
* GitHub - [charmbracelet / glow](https://github.com/charmbracelet)