docker / desktop-linux

Bug reports for Docker Desktop for Linux
https://docs.docker.com/desktop/linux/
73 stars 5 forks source link

Docker Desktop for Linux container Terminal should open to the default user shell instead of sh. #129

Open wyattbiker opened 1 year ago

wyattbiker commented 1 year ago

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

image

docker-robot[bot] commented 1 year ago

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

rmunn commented 12 months ago

/remove-lifecycle stale