Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

luckydonald commented Jan 24, 2022

@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