mirror of
https://github.com/tborychowski/self-hosted-cookbook.git
synced 2025-05-13 10:53:38 +00:00
docker troubleshooting
This commit is contained in:
parent
51627aa442
commit
770e82f21b
@ -18,9 +18,9 @@ So, without further ado, here's the current list:
|
||||
|
||||
|
||||
# General Information
|
||||
- How to setup docker & docker-compose?
|
||||
- How to use docker-compose
|
||||
- Troubleshooting
|
||||
- [How to setup docker & docker-compose?](docker/setup.md)
|
||||
- [How to use docker-compose](docker/usage.md)
|
||||
- [Troubleshooting](docker/troubleshooting.md)
|
||||
|
||||
# Other self-hosted sources
|
||||
- [awesome-selfhosted](https://github.com/awesome-selfhosted/awesome-selfhosted)
|
||||
|
1
docker/setup.md
Normal file
1
docker/setup.md
Normal file
@ -0,0 +1 @@
|
||||
# Docker Setup
|
47
docker/troubleshooting.md
Normal file
47
docker/troubleshooting.md
Normal file
@ -0,0 +1,47 @@
|
||||
# Docker Troubleshooting
|
||||
|
||||
|
||||
### ERROR: Version in "./docker-compose.yml" is unsupported.
|
||||
```sh
|
||||
sudo apt-get remove docker-compose
|
||||
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
||||
sudo chmod +x /usr/local/bin/docker-compose
|
||||
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
|
||||
```
|
||||
|
||||
|
||||
### ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?
|
||||
```sh
|
||||
sudo reboot
|
||||
```
|
||||
|
||||
|
||||
### ERROR: Permission denied while trying to connect to the Docker daemon
|
||||
```sh
|
||||
sudo usermod -a -G docker $USER
|
||||
```
|
||||
|
||||
|
||||
### ERROR: mountpoint for devices not found
|
||||
e.g.
|
||||
```
|
||||
OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:297: applying cgroup configuration for process caused \"mountpoint for devices not found\"": unknown
|
||||
```
|
||||
|
||||
#### Follow These Steps:
|
||||
1. edit grub
|
||||
```sh
|
||||
sudo nano /etc/default/grub
|
||||
```
|
||||
2. change GRUB_CMDLINE_LINUX value to the below:
|
||||
```
|
||||
GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=0"
|
||||
```
|
||||
3. then run:
|
||||
```sh
|
||||
grub2-mkconfig
|
||||
```
|
||||
4. then:
|
||||
```sh
|
||||
sudo reboot
|
||||
```
|
1
docker/usage.md
Normal file
1
docker/usage.md
Normal file
@ -0,0 +1 @@
|
||||
# Docker Usage
|
Loading…
Reference in New Issue
Block a user