{"id":17177971,"url":"https://github.com/curusarn/persistent-docker-history","last_synced_at":"2025-10-20T07:59:27.758Z","repository":{"id":129173348,"uuid":"184057377","full_name":"curusarn/persistent-docker-history","owner":"curusarn","description":"Project showing how to setup persistent shell history in a docker container","archived":false,"fork":false,"pushed_at":"2022-12-18T22:59:45.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-23T22:35:27.927Z","etag":null,"topics":["command-line","docker","docker-compose","shell-history","user-experience"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/curusarn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-04-29T11:21:23.000Z","updated_at":"2023-03-07T02:16:11.000Z","dependencies_parsed_at":"2023-07-05T20:46:23.970Z","dependency_job_id":null,"html_url":"https://github.com/curusarn/persistent-docker-history","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/curusarn/persistent-docker-history","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curusarn%2Fpersistent-docker-history","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curusarn%2Fpersistent-docker-history/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curusarn%2Fpersistent-docker-history/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curusarn%2Fpersistent-docker-history/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curusarn","download_url":"https://codeload.github.com/curusarn/persistent-docker-history/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curusarn%2Fpersistent-docker-history/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280050813,"owners_count":26263884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","docker","docker-compose","shell-history","user-experience"],"created_at":"2024-10-15T00:05:36.949Z","updated_at":"2025-10-20T07:59:27.753Z","avatar_url":"https://github.com/curusarn.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# persistent-docker-history\nProject showing how to setup persistent shell history in a docker container\n\n- I often use commandline inside docker containers.  \n- I don't like to type same commands over and over again.  \n- So I use docker-compose volume to keep the history in the project directory instead of docker container.\n- I usually populate the history with useful commands and commit them to git so anyone who clones the project can use them.  \n- And then I just leave the file alone and use it as personal docker history for the project.\n\n## Try it!\n\n1. Clone this repo `git clone git@github.com:curusarn/persistent-docker-history.git`\n1. Run `make docker`\n1. Use arrow up to get previous commands or whatever\n\n## Configure persistent history for your existing docker-compose\n\n1. Add `.docker_bash_history:/root/.bash_history` to `volumes` in your `docker-compose.yaml`\n1. Run `touch .docker_bash_history` (OR something like `echo 'echo \"it works!\"' \u003e .docker_bash_history`)\n1. Use `docker-compose run ...` as usual\n\n### Prerequisities\n\n- `docker`\n- `docker-compose`\n- standard stuff (`make`, *other things I can't think of right now*)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurusarn%2Fpersistent-docker-history","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurusarn%2Fpersistent-docker-history","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurusarn%2Fpersistent-docker-history/lists"}