You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
On Fedora, I need to modify the docker-compose.yml file to work with SELinux.
Environment description
Installation environment: docker, docker-compose
I am using the default docker-compose.yaml file.
Fedora Linux 37 (Server Edition) x86_64
Steps to reproduce
To reproduce the issue, follow these steps:
Start with the environment described above.
Download and execute the default docker-compose.yml file.
Observe the following error:
hbbs | [2023-03-29 11:41:13.876805 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs | [2023-03-29 11:41:14.435805 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs | [2023-03-29 11:41:14.979415 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs | [2023-03-29 11:41:15.708147 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs | [2023-03-29 11:41:16.840698 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs | [2023-03-29 11:41:18.766235 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs | [2023-03-29 11:41:22.287298 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs exited with code 1
My solution
I suggest adding :z at the end of the line for each volume in the docker-compose.yml file, like so:
Same problem, it's due to the SELinux, according to me :z or :Z is the easiest way to solve. Modifying SELinux policies or security contexts may raise the risk in system security.
Describe the bug
On Fedora, I need to modify the docker-compose.yml file to work with SELinux.
Environment description
Steps to reproduce
To reproduce the issue, follow these steps:
My solution
I suggest adding :z at the end of the line for each volume in the docker-compose.yml file, like so:
The text was updated successfully, but these errors were encountered: