How to add users to Docker container?

后端 未结 8 1228
无人及你
无人及你 2020-11-28 17:07

I have a docker container with some processes (uwsgi and celery) running inside. I want to create a celery user and a uwsgi user for these processes as well as a worker grou

8条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 17:56

    Add this line to your Dockerfile (You can run any linux command this way)

    RUN useradd -ms /bin/bash yourNewUserName
    

提交回复
热议问题