You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the docker driver on linux, and running minikube ssh,
after logging out, /usr/bin/clear_console is executed by the docker user's ~/.bash_logout, which originates from the default ubuntu /etc/skel/.bash_logout for privacy reasons
Typically this command does not work in non-privileged containers which don't have access to the host's console device. minikube ssh is mainly used during troubleshooting and local testing. I don't see any privacy concern in this case.
Losing the previous terminal output is probably not the intended expected behavior during minikube troubleshooting.
My proposal is to add a RUN rm /home/docker/.bash_logout
to the kicbase Dockerfile at this line to prevent the terminal from being cleared.
Ubuntu's default /etc/skel/.bash_logout for reference:
# ~/.bash_logout: executed by bash(1) when login shell exits.
# when leaving the console clear the screen to increase privacy
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi
What Happened?
When using the docker driver on linux, and running
minikube ssh
,after logging out,
/usr/bin/clear_console
is executed by the docker user's~/.bash_logout
, which originates from the default ubuntu/etc/skel/.bash_logout
for privacy reasonsTypically this command does not work in non-privileged containers which don't have access to the host's console device.
minikube ssh
is mainly used during troubleshooting and local testing. I don't see any privacy concern in this case.Losing the previous terminal output is probably not the intended expected behavior during minikube troubleshooting.
My proposal is to add a
RUN rm /home/docker/.bash_logout
to the kicbase Dockerfile at this line to prevent the terminal from being cleared.
Ubuntu's default
/etc/skel/.bash_logout
for reference:Attach the log file
log.txt
Operating System
Ubuntu
Driver
Docker
The text was updated successfully, but these errors were encountered: