Open patrickelectric opened 1 year ago
In your Dockerfile:
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)"
RUN chsh -s /bin/zsh username
CMD [ "/bin/zsh" ]
this should work provided your user has the correct permissions (otherwise you may need to change the current user to root or to sudo the command)
Hi,
I'm also using your script (thank you very much btw for it) to load in oh-my-zsh into a container in k8s. The thing is, I need to have restricted permissions for the user's activity and installing oh-my-zsh with root puts the /.oh-my-zsh folder out of reach to source it for the container's user and I don't want to expand the user's permissions to be able to wget or curl anything.
Is there at all a way around this?
Maybe copy over the files to the new user?
Scott
How can that be accomplished ? I would like to have it working for tmux and others services inside the docker as well.