Skip to content
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

Launching container as UID 1000 prompts for zsh configuration #503

Open
jeffcpullen opened this issue Dec 17, 2024 · 0 comments
Open

Launching container as UID 1000 prompts for zsh configuration #503

jeffcpullen opened this issue Dec 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jeffcpullen
Copy link

While testing the latest release of the the dev container I found that the terminal is captured in the zsh configuration TUI.

% podman run --rm -it -u 1000 ghcr.io/ansible/community-ansible-dev-tools:v24.12.0
This is the Z Shell configuration function for new users,
zsh-newuser-install.
You are seeing this message because you have no zsh startup files
(the files .zshenv, .zprofile, .zshrc, .zlogin in the directory
~).  This function can help you with a few settings that should
make your use of the shell easier.

You can:

(q)  Quit and do nothing.  The function will be run again next time.

(0)  Exit, creating the file ~/.zshrc containing just a comment.
     That will prevent this function being run again.

(1)  Continue to the main menu.

--- Type one of the keys in parentheses --- 

An inspection of the image shows that the 'CMD' parameter is set to the following.

"Cmd": [
                    "zsh"
               ],

If zsh is required it would seem that a default configuration file should be created to prevent the terminal from being captured in the setup screen.

Out of curiousity, is zsh actually required? I switch between it and bash frequently due to OS defaults and have never really noticed a difference. Rather than trying to solve the zsh configuration screen, perhaps switching CMD to /bin/bash would make more sense as it is the Fedora base image default.

% podman run --rm -it -u 1000 ghcr.io/ansible/community-ansible-dev-tools:v24.12.0 /bin/bash
bash-5.2$
@ssbarnea ssbarnea added the bug Something isn't working label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants