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 thro
.bash_history
To keep IPython history, you can set the IPYTHONDIR environment variable to somewhere within your mapped volume.
IPYTHONDIR
The docker-compose.override.yml would look like this:
docker-compose.override.yml
version: '2' services: some-service: environment: - IPYTHONDIR=/app/.ipython volumes: - .:/app