segmentation fault docker-compose up
Problem
On GCE Debian
❯ docker-compose up zsh: segmentation fault docker-compose up
Solution
GCE, Docker 環境で Segmentation fault の対処法 - Qiita
sudo apt update sudo sysctl vm.overcommit_memory
Output:
❯ sudo sysctl vm.overcommit_memory vm.overcommit_memory = 0
If you get vm.overcommit_memory = 0
, change the setting with sudo sysctl vm.overcommit_memory=1
:
❯ sudo sysctl vm.overcommit_memory=1 vm.overcommit_memory = 1
Then, you can use docker-compose up
.
command not found: sysctl
If you get command not found: sysctl
, install sysctl:
command-not-found.com – sysctl
sudo apt update sudo apt install procps sudo apt autoremove