-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change default shell from bash to zsh after image creation #31
Comments
Thanks for sending this! I personally think the easiest way right now to handle this is to customize the Docker image used for the environment from what's built in cs350-docker to include Action Items (for me):
Manually build image locallyYou can build and tag a custom image locally and point Build custom image You can modify the Dockerfile in # use this if you don't need to build a cross-platform image
docker build -t xv6-docker:v1 .
# use this if you're on an M1 Mac and need to explicitly build for linux/amd64 architecture
docker buildx build --platform linux/amd64 -t xv6-docker:v1 . Point ch environment to local image The # path to xv6 code
VOLUME_MNT=$HOME/workspace/csci350
ch create csci350 \
--replace \
--image xv6-docker:v1 \
--volume $VOLUME_MNT:/xv6_docker \
--security-opt seccomp:unconfined \
--port 7776:22 \
--port 7777:7777 \
--port 25000:25000 \
--cap-add SYS_PTRACE \
--shell /bin/zsh \
--privileged Using
|
Is your feature request related to a problem? Please describe.
Installed zsh in docker image but have to run zsh every time I launch my csci350 image.
Describe the solution you'd like
Make it possible to change the startup shell from
/bin/bash
to/bin/zsh
after docker image is created.Otherwise, add some details to the readme to allow manual changes of the docker startup file so I can manually change
/bin/bash
to/bin/zsh
.Additional context
Tried making the startup shell for the image to be
/bin/zsh
but thench shell csci350
doesn't work since it can't find/bin/zsh
(since zsh is not installed by default).The text was updated successfully, but these errors were encountered: