How do I define the user name for code-server? #6355
Unanswered
Pythoneryeah
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Have you tried changing the username to your desired username and adding |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I installed code-server using docker, the default user in docker was jovyan. How to customize the user name?

The contents of my dockerfile are as follows:
`FROM jupyter/all-spark-notebook:latest
ADD code-server_4.14.1_amd64.deb .
USER root
RUN /bin/sh -c 'dpkg -i code-server_4.14.1_amd64.deb && mkdir -p /opt/code/ext/ && mkdir -p ~/.ipython/kernels/pyspark/'
#ADD config/config1.yaml ~/.config/code-server/
设置环境变量
ENV PASSWORD msxf
ENV NODE_OPTIONS --max-old-space-size=8192
启动 Code Server 和 Jupyter
CMD ["sh", "-c", "jupyter-notebook --ip='0.0.0.0' --port=8889 --no-browser --allow-root & code-server --bind-addr 0.0.0.0:9999 --auth password"]
`
Beta Was this translation helpful? Give feedback.
All reactions