### Build image and run docker container
> docker compose -f server-compose.yml up -d
### Check default storage permission
> docker exec --user root pgadmin_pga ls -al /var/lib/pgadmin/storage/postgres_example.com/
drwx------ 3 pgadmin root 4096 Apr 1 05:47 ..
-rw-r--r-- 1 pgadmin root 419 Apr 1 06:20 pg-test
### Change shared-storage permission as same as default personal storage
> docker exec --user root pgadmin_pga chown -R pgadmin:root /mnt/storage/
> docker exec --user root pgadmin_pga chmod -R 644 /mnt/storage/
> docker exec --user root pgadmin_pga chmod 700 /mnt/storage/
> docker exec --user root pgadmin_pga ls -al /mnt/storage/
drwx------ 1 pgadmin root 512 Apr 1 02:51 .
drwxr-xr-x 1 root root 4096 Apr 1 05:43 ..
-rw-r--r-- 1 pgadmin root 419 Apr 1 02:35 pg-test
### Start sshd ###
> docker exec -t pgadmin_db bash -c "/usr/sbin/sshd -D"
-
Notifications
You must be signed in to change notification settings - Fork 0
nabe1653/pgadmin4-ssh-sample
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Sample code to reproduce ssh problem
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published