desktop-linux
desktop-linux copied to clipboard
Docker Desktop for Linux container Terminal should open to the default user shell instead of sh.
trafficstars
Expected behavior
When using the Terminal from Docker Desktop it should default to the user's default shell as set in the /etc/passwd file.
Actual behavior
Currently when you use Terminal in Docker Desktop, the shell is always sh
Information
# id
uid=0(root) gid=0(root) groups=0(root)
# ps -p $$
PID TTY TIME CMD
36 pts/0 00:00:00 sh
#
# cat /etc/passwd | grep -i root
root:x:0:0:root:/root:/bin/bash
#
Version Info
Operating System: Kubuntu 22.10
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.0-35-generic (64-bit)
Docker Version 4.16.2 (95914)
Steps to reproduce the behavior
Open a terminal on a container

There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment.
If not, this issue will be closed in 30 days.
Prevent issues from auto-closing with a /lifecycle frozen comment.
/lifecycle stale
/remove-lifecycle stale