desktop-linux icon indicating copy to clipboard operation
desktop-linux copied to clipboard

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

Open wyattbiker opened this issue 2 years ago • 2 comments
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

image

wyattbiker avatar Mar 10 '23 02:03 wyattbiker

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

docker-robot[bot] avatar Jun 23 '23 01:06 docker-robot[bot]

/remove-lifecycle stale

rmunn avatar Jul 04 '23 03:07 rmunn