Install oh-my-zsh in Docker
RUN ["apt-get", "update"] | |
RUN ["apt-get", "install", "-y", "zsh"] | |
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true | |
# docker exec -it my-app-container /bin/zsh |
This comment has been minimized.
This comment has been minimized.
@b232wang either you make the linux default sh into zsh, or you use docker run -it imageName /bin/zsh |
This comment has been minimized.
This comment has been minimized.
@232wang Adding |
This comment has been minimized.
This comment has been minimized.
Good stuff! Couldn't figure out how to get it working. Thanks! |
This comment has been minimized.
This comment has been minimized.
Any idea how to set a zsh theme in a docker container? |
This comment has been minimized.
This comment has been minimized.
you can set it before you do the installation.
|
This comment has been minimized.
This comment has been minimized.
The full script would look something like this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Hi, when I run docker, it's still bash shell, I need to enter
zsh
switch bash to zsh(oh-my-zsh). I addedRUN chsh -s /usr/bin/zsh
still not working. Any idea for that? Thanks.