# docker-scripts **Repository Path**: cuukenn/docker-scripts ## Basic Information - **Project Name**: docker-scripts - **Description**: docker compose 常用服务 - **Primary Language**: Shell - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-08-05 - **Last Updated**: 2024-06-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### docker容器服务 - 准备 - 安装docker - windows:[windows-docker-desktop](https://www.docker.com/products/docker-desktop) - linux:https://www.runoob.com/docker/docker-tutorial.html - 安装docker-compose:https://www.runoob.com/docker/docker-compose.html - 启动(对应服务目录,需在linux bash中执行) - sh文件 ``` ./start.sh ``` - yml文件 ``` docker-compose up -d ``` - 注意 - 数据持久化保存根目录:${HOME}/.docker/cust-data/ - start.sh存在则优先使用 - /bin/sh报错停止运行;/bin/bash报错继续运行 - windows编辑sh文件需设置换行符为LF类型,否则执行会报错