Skip to content

Commit

Permalink
feat: add the tip of before_sparrow_command if docker not exits
Browse files Browse the repository at this point in the history
  • Loading branch information
WGrape committed Mar 4, 2024
1 parent d1e5444 commit e035ca9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .work/extra/doc/5.QA_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ yum install -y docker-compose

### (2) Start

Check the Docker status by running the command ```docker info```. If it is not running, you need to start Docker first.

<img width="500" src="https://github.com/WGrape/sparrow/assets/35942268/22c72dca-c62a-43d5-81a1-deb4fca749bd" >

```bash
# Check Docker Status.
sudo systemctl status docker
Expand Down
3 changes: 3 additions & 0 deletions sparrow
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ before_sparrow_command() {
# check docker.
if ! docker info > /dev/null 2>&1; then
print_error "error: please install or start docker first."
echo "==================================================================================="
print_warn "Reference: https://github.com/WGrape/sparrow/tree/main/.work/extra/doc/5.QA_EN.md\n"
print_warn "Tip: use 'docker info' to check status of docker, and use 'systemctl start docker' to start.\n"
exit 1
fi

Expand Down

0 comments on commit e035ca9

Please sign in to comment.