Docker.io init.d script not working on start container

后端 未结 5 1572
故里飘歌
故里飘歌 2021-02-02 17:31

I\'ve a container with odoo on it on the dir \"/opt/odoo/\".

A init script on \"/etc/init.d/odoo-server\"

#!/bin/bash
### BEGIN INIT INFO
# Provides:            


        
5条回答
  •  抹茶落季
    2021-02-02 17:56

    Docker containers typically do not have a functioning init system. If you are simply running a single service -- just start that.

    If you need something more complex, look at supervisord or runit.

    Containers are not virtual machines.

提交回复
热议问题