Docker Community Forums

Share and learn in the Docker community.

How to save the last bash session


(JxDeveloper) #1

When I exit one container, the bash session cannot be saved.
As I tested, only bash history was saved, others like $PATH and alias were reset.
Is there any way to save the bash session?


(JxDeveloper) #2

After researched, I think I got the answer that it is caused by ubuntu design, which is not specified for Docker. Thus there are some issues. And all come to the baseimage.