#author("2023-05-09T23:42:36+00:00","default:wikiadmin","wikiadmin") #author("2023-05-09T23:45:09+00:00","default:wikiadmin","wikiadmin") -Docker起動しない問題に遭遇 *Ubuntu 16.04 [#x3d6d41f] AMIはこれ https://console.aws.amazon.com/ec2/home?region=ap-northeast-1#launchAmi=ami-0822295a729d2a28e インストール手順はhttps://docs.docker.jp/engine/installation/linux/docker-ce/centos.html sudo apt-get install apt-transport-https ca-certificates curl software-properties-common sudo apt-key fingerprint 0EBFCD88 そのままではSonarqube9起動せず sonarqube | [0.160s][warning][os,thread] Failed to start thread "VM Thread" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached. sonarqube | Error occurred during initialization of VM sonarqube | Cannot create VM thread. Out of system resources. sonarqube exited with code 1 DockerのBug https://github.com/adoptium/temurin-build/issues/3020 **18.04への更新 [#bac4d102] 10分で終わる。再起動必要。 sudo do-release-upgrade -c sudo do-release-upgrade **20.04 [#f7960e92] sudo /usr/local/bin/docker-compose up [+] Running 1/1 ✘ Network ubuntu_default Error 0.1s failed to create network ubuntu_default: Error response from daemon: Failed to Setup IP tables: Unable to enable NAT rule: (iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.19.0.0/16 ! -o br-381c124cc9e2 -j MASQUERADE: (fork/exec /sbin/iptables: no such file or directory)) docker再起動で起動はするが状況改善せず ***パッケージ更新 [#n64ff9a9] sudo apt autoremove sudo apt-get upgrade -y *Amazon Linux 2 [#ef944eac] sudo amazon-linux-extras install -y docker echo "vm.max_map_count = 262144" >> /etc/sysctl.conf sudo sysctl --system sudo curl -L https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-linux-x86_64 --output /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose sudo systemctl start docker sudo /usr/local/bin/docker-compose up