{"id":21314133,"url":"https://github.com/bitxx/docker_bash","last_synced_at":"2026-04-12T22:54:03.281Z","repository":{"id":53701139,"uuid":"365249632","full_name":"bitxx/docker_bash","owner":"bitxx","description":"快捷使用docker主流容器的脚本，减少本地开发时环境问题的影响","archived":false,"fork":false,"pushed_at":"2023-07-27T01:51:54.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T10:16:10.729Z","etag":null,"topics":["docker","docker-compose","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mulanpsl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitxx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-05-07T13:53:06.000Z","updated_at":"2023-08-01T01:52:05.000Z","dependencies_parsed_at":"2023-07-26T14:06:23.702Z","dependency_job_id":null,"html_url":"https://github.com/bitxx/docker_bash","commit_stats":null,"previous_names":["bitxx/docker_bash"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Fdocker_bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Fdocker_bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Fdocker_bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Fdocker_bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitxx","download_url":"https://codeload.github.com/bitxx/docker_bash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790999,"owners_count":20348385,"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","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":["docker","docker-compose","shell"],"created_at":"2024-11-21T18:10:48.355Z","updated_at":"2026-04-12T22:53:58.239Z","avatar_url":"https://github.com/bitxx.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker_bash\n通过docker-compose和shell，简化docker容器管理的一些快捷使用操作（如启动、停止等）。\n无论在linux、mac、windows(git bash) 均可以便捷操作docker容器，方便程序猿开发和测试项目。\n\n## 软件架构\n必须先安装docker和docker-compose\n\n## 使用前须知\n默认项目名称为：`x`，不建议修改名称  \n如果非要变更名称：则需要将`main.sh`和`docker-compose.yml`中的`x`改为自定义的项目名称\n\n## 使用方式\n1. 可以配置环境变量，方便全局快速启动\n```shell\n# docker 快捷入口\nexport PATH=/xxx/docker_bash:$PATH\n# docker-compose.yml 文件所在目录\nexport DOCKER_COMPOSE_PATH=/xxx/docker_bash/\n```\n2. 启动所需镜像\n以mariadb为例\n```shell\n# 启动\nmain.sh start mariadb\n\n# 查看容器日志\nmain.sh logs mariadb\n\n# 停止容器\nmain.sh release mariadb\n```\n\n## 支持镜像\n```text\nmongo       略  \nmysql       略  \nmariadb     略  \nredis       略  \njava        略  \nnginx       略  \nipfs        星际网络存储协议  \nportainer   docker可视化管理  \nmq          消息队列  \nyapi        接口管理 \npython      略\nconsul      微服务注册和发现，涉及4个容器，集群 consul1、consul2、consul3、consului\netcd        微服务注册和发现，涉及4个容器，集群 etcd1、etcd2、etcd3、etcdui\narbnode     arbitrum节点，可配置连接来变更测试和正式节点\ndtf         分布式事务锁\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitxx%2Fdocker_bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitxx%2Fdocker_bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitxx%2Fdocker_bash/lists"}