{"id":19542223,"url":"https://github.com/pythonzm/docker-redis","last_synced_at":"2026-02-01T02:32:31.075Z","repository":{"id":96962357,"uuid":"96436842","full_name":"pythonzm/docker-redis","owner":"pythonzm","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-07T07:35:10.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T22:41:45.413Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/pythonzm.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}},"created_at":"2017-07-06T14:04:15.000Z","updated_at":"2017-07-07T07:09:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ea6db5a-204c-46cb-9bef-c6d3d57dabfc","html_url":"https://github.com/pythonzm/docker-redis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pythonzm/docker-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2Fdocker-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2Fdocker-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2Fdocker-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2Fdocker-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythonzm","download_url":"https://codeload.github.com/pythonzm/docker-redis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2Fdocker-redis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28965377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T02:14:24.993Z","status":"ssl_error","status_checked_at":"2026-02-01T02:13:55.706Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-11T03:13:44.359Z","updated_at":"2026-02-01T02:32:31.056Z","avatar_url":"https://github.com/pythonzm.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-redis\n\n## start a redis instance\n```\n$ docker run --name some-redis -d dockerzm/redis:3.2.9\n```\n## connect to it from an application\n```\n$ docker run --name some-app --link some-redis:redis -d application-that-uses-redis\n```\n## ... or via redis-cli\n```\n$ docker run -it --link some-redis:redis --rm redis redis-cli -h redis -p 6379\n```\n## use your own redis.conf \nYou can create your own Dockerfile that adds a redis.conf from the context into /data/, like so.\n```\nFROM redis\nCOPY redis.conf /usr/local/etc/redis/redis.conf\nCMD [ \"redis-server\", \"/usr/local/etc/redis/redis.conf\" ]\n```\nAlternatively, you can specify something along the same lines with `docker run` options.\n```\ndocker run -d --name redis -v /docker/redis/redis.conf:/data/redis.conf dockerzm/redis:3.2.9\n```\n**NOTE:必须先将本地`redis.conf`文件中`daemonize yes`注释掉或改为no!**\n\u003e 因为`daemonize yes` 表示redis-server进程在后台运行， 执行完`redis-server redis.conf`就完了， 这时的shell是没任何东西在运行的，所以docker以为你运行完毕， 所以容器就退出了\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonzm%2Fdocker-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythonzm%2Fdocker-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonzm%2Fdocker-redis/lists"}