Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 3d8718d

Browse files
committed
Add file ownership and restart commands
1 parent c90c8ef commit 3d8718d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/how-to/configure.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ to back up the database to your current working directory, you can run the
8585
following command:
8686

8787
```bash
88+
# Copy the database file from the container to your host system
8889
docker cp codegate:/app/codegate_volume/db/codegate.db ./codegate.db
8990
```
9091

@@ -96,5 +97,12 @@ example, if you have a backup of the database file in your current working
9697
directory, you can restore it to the container by running:
9798

9899
```bash
100+
# Copy the backup file to the container
99101
docker cp ./codegate.db codegate:/app/codegate_volume/db/codegate.db
102+
103+
# Reset file ownership
104+
docker exec -u root codegate sh -c "chown codegate:codegate /app/codegate_volume/db/codegate.db"
105+
106+
# Restart CodeGate
107+
docker restart codegate
100108
```

0 commit comments

Comments
 (0)