Is there any way to share a .bash_history
volume with a docker container so that everytime I go into a shell I have my bash history available for scrolling through?
Would be awesome to be able to do the same thing with IPython too.
Is there any way to share a .bash_history
volume with a docker container so that everytime I go into a shell I have my bash history available for scrolling through?
Would be awesome to be able to do the same thing with IPython too.
It is the example from the documentation about volume: Mount a host file as a data volume:
To keep IPython history, you can set the
IPYTHONDIR
environment variable to somewhere within your mapped volume.The
docker-compose.override.yml
would look like this:In your
docker-compose.override.yml
: