Skip to content

Commit

Permalink
added script info in docker docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JiyaGupta-cs committed Jan 4, 2025
1 parent 7696cb4 commit 29e251a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ If you are using Linux you may encounter permission error when trying to change
$ sudo chown $USER:$GROUPS -R ./
```
The command will change the owner of all file inside project directory to the `$USER:$GROUPS`

If you encounter the following error when connecting to the database: _"There is an issue connecting with your hostname mysql"_, please run the following command:
```sh
bash ./update_hosts.sh
```
This script automatically resolves the issue by ensuring proper network mapping in your system's ```/etc/hosts``` file, facilitating seamless database connections. It retrieves the IP address of the MySQL Docker container, checks for any existing hostname entries, and updates or removes outdated ones. This process ensures that the hostname ```mysql``` is correctly mapped to the container’s IP address.
This bash script is designed for Linux distributions like Fedora.

0 comments on commit 29e251a

Please sign in to comment.