meolu / walle-web

walle - 瓦力 Devops开源项目代码部署平台
https://walle-web.io
Apache License 2.0
11.84k stars 2.76k forks source link

docker-composer up ERROR #699

Open MissYaer opened 5 years ago

MissYaer commented 5 years ago

docker-compose up 启动后

ERROR: for walle-mysql  Cannot start service db: OCI runtime create failed: container_linux.go:344: starting container process caused "process_linux.go:297: getting the final child's pid from pipe caused \"read init-p: connection reset by peer\"": unknown

ERROR: for db  Cannot start service db: OCI runtime create failed: container_linux.go:344: starting container process caused "process_linux.go:297: getting the final child's pid from pipe caused \"read init-p: connection reset by peer\"": unknown
ERROR: Encountered errors while bringing up the project.

docker-composer.yml文件如下

version: '3.7'
services:
  web:
    image: alenx/walle-web:2.0
    container_name: walle-nginx
    hostname: nginx-web
    ports:
       - "80:80"
    links:
       - python
    depends_on:
       - python
    networks:
       - walle-net
    restart: always

  python:
    image: alenx/walle-python:2.0
    container_name: walle-python
    hostname: walle-python
    env_file:
      - walle.env
    command: bash -c "cd /opt/walle-web/ && /bin/bash admin.sh migration && python waller.py"
    expose:
      - "5000"
    volumes:
      - /tmp/walle/codebase/:/tmp/walle/codebase/
      - /tmp/walle/logs/:/opt/walle-web/logs/
      - /root/.ssh:/root/.ssh/
    links:
      - db
    depends_on:
      - db
    networks:
      - walle-net
    restart: always

  db:
    image: mysql
    container_name: walle-mysql
    hostname: walle-mysql
    env_file:
      - walle.env
    command: --default-authentication-plugin=mysql_native_password
    ports:
      - "3307:3307"
    expose:
      - "3307"
     volumes:
      - ~/data/walle/mysql:/var/lib/mysql
     networks:
      - walle-net
     restart: always

networks:
  walle-net:
    driver: bridge
moh-sushi commented 5 years ago

due to failure "Cannot start service db: OCI runtime create failed: container_linux.go:344: starting container process caused "process_linux.go:297: getting the final child's pid from pipe caused \"read init-p: connection reset by peer\"": unknown." :

i have had the same failure on ubuntu 14.04 and docker-ce 18.06.2-ce.

see release notes -> https://docs.docker.com/engine/release-notes/

18.06.2

2019-02-11 Security fixes for Docker Engine - Community

Update runc to address a critical vulnerability that allows specially-crafted containers to gain administrative privileges on the host. CVE-2019-5736
Ubuntu 14.04 customers using a 3.13 kernel will need to upgrade to a supported Ubuntu 4.x kernel

Well, i have to upgrade to a supported Ubuntu 4.x Kernel....

HTH

MissYaer commented 5 years ago

Thank you. I'm upgrading.

henyihanwobushi commented 5 years ago

@MissYaer problem solved?

hyxiaomo commented 3 years ago

可以试试重启docker,如果之前有单独安装过mysql,可以关闭mysql(systemctl stop mysqld)