Skip to content

Commit bc91fd5

Browse files
authored
memory pressure mount
Added instructions for configuring memory pressure in Docker.
1 parent 2e5d087 commit bc91fd5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,22 @@ If you see the following error in the Docker logs while trying to start MariaDB,
679679
[Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
680680
```
681681
682+
You might also need to add the following line to the volums section of your `compose.yml` file:
683+
684+
```
685+
- /sys/fs/cgroup/memory.pressure:/sys/fs/cgroup/memory.pressure
686+
```
687+
688+
Doing that would change the volumes section of a default config file to the following:
689+
690+
```
691+
volumes:
692+
- dvwa:/var/lib/mysql
693+
- /sys/fs/cgroup/memory.pressure:/sys/fs/cgroup/memory.pressure
694+
```
695+
696+
For more information on why this works, see [this issue](https://github.com/MariaDB/mariadb-docker/issues/626).
697+
682698
### Anything Else
683699
684700
For the latest troubleshooting information please read both open and closed tickets in the git repo:

0 commit comments

Comments
 (0)