supervisor in Dockerfile socket.error

Created on 19 Jul 2019  路  1Comment  路  Source: Supervisor/supervisor

I ran into a socket.error when I tried to start my supervisor in Docker. The following is the commands:

RUN apt-get install -y supervisor

COPY websocket.conf /etc/supervisor/conf.d

RUN supervisord -c /etc/supervisor/supervisord.conf

RUN supervisorctl update

in supervisorctl update it log an error: error: , [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 228

It can be run sucessfully if I log in to the container terminal to run the command but fail in Dockerfile

question

Most helpful comment

Supervisor doesn't have any awareness of Docker or special features for it, but a possibility is the following:

RUN supervisord -c /etc/supervisor/supervisord.conf

RUN supervisorctl update

In the first command you're explicitly giving supervisord the path of the configuration file. In the second command, you're asking supervisorctl to search for the configuration file, which may have different results. If you specify -c to both, you can ensure they are both using the same configuration file.

I am going to close this issue because it seems to be an installation or configuration issue. If you can show it's a bug in Supervisor, we can reopen.

>All comments

Supervisor doesn't have any awareness of Docker or special features for it, but a possibility is the following:

RUN supervisord -c /etc/supervisor/supervisord.conf

RUN supervisorctl update

In the first command you're explicitly giving supervisord the path of the configuration file. In the second command, you're asking supervisorctl to search for the configuration file, which may have different results. If you specify -c to both, you can ensure they are both using the same configuration file.

I am going to close this issue because it seems to be an installation or configuration issue. If you can show it's a bug in Supervisor, we can reopen.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

felipemachado-sambatech picture felipemachado-sambatech  路  74Comments

ghost picture ghost  路  25Comments

pisymbol picture pisymbol  路  21Comments

jvanasco picture jvanasco  路  46Comments

cclauss picture cclauss  路  62Comments