Skip to content

Instantly share code, notes, and snippets.

@gido
Last active September 28, 2022 13:01
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gido/9b7e323571cf61820bd4baef92e30861 to your computer and use it in GitHub Desktop.
Save gido/9b7e323571cf61820bd4baef92e30861 to your computer and use it in GitHub Desktop.
Example to keep your bash history with docker compose
version: '3.6'
services:
dev:
image: ubuntu
volumes:
# '~/.docker_bash_history' file should exist before mounting
- $HOME/.docker_bash_history:/root/.bash_history
# ...
version: '3.6'
services:
dev:
image: ubuntu
environment:
HISTFILE: /root/hist/.bash_history
volumes:
- bashhistory:/root/hist
volumes:
bashhistory:
@gido
Copy link
Author

gido commented Nov 13, 2019

@luckydonald
Copy link

@gido The embeddings in blog are broken.
Instead there's the embed script tag shown as code block:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment