ThePorgs / Exegol

Fully featured and community-driven hacking environment
https://exegol.readthedocs.io/
GNU General Public License v3.0
1.94k stars 191 forks source link

Docker configuration file not found (settings.json) #242

Open vramULB opened 2 days ago

vramULB commented 2 days ago

Describe the bug

Docker Destop configuration file cannot be found because the name of the configuration file changed to settings-store.json from Docker Desktop versions later than 4.34

https://docs.docker.com/desktop/settings-and-maintenance/settings/

It's also give me the error : Bind volume from .../imgsync/spawn.sh is not possible, Docker Desktop configuration is incorrect. But the path expected path is well added in the file sharing resources of the Docker Desktop.

Screenshot 2024-11-13 at 15 11 15

Steps To Reproduce

exegol start

Exegol Wrapper Version

% exegol version -vvv
/Library/Python/3.9/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(
[D] Loading git at /Users/MySecretName/Exegol                                                                                                
[D] Repo path: /Users/MySecretName/Exegol/.git                                                                                               
[D] Git repository successfully loaded                                                                                                
[*] Exegol is currently in version v4.3.8
[*] Exegol Discord serv.: https://discord.gg/cXThyp7D6P
[*] Exegol documentation: https://exegol.rtfd.io/
[D] Pip installation: Off 🪓                                                                                                          
[D] Git source installation: On ✔                                                                                                     
[D] Host OS: Mac (Docker desktop)                                                                                                     
[D] Arch: arm64                                                                                                                       
[D] Docker desktop: On ✔                                                                                                              
[D] Shell type: Mac                                                                                                                   
[D] Last wrapper update check: 13/11/2024

Host OS

MacOS

Configuration of the concerned container

NAN

Execution logs in debug mode

% exegol start -vvv
/Library/Python/3.9/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(
[D] Loading git at /Users/MySecretName/Exegol                                                                                                
[D] Repo path: /Users/MySecretName/Exegol/.git                                                                                               
[D] Git repository successfully loaded                                                                                                
[*] Exegol is currently in version v4.3.8
[*] Exegol Discord serv.: https://discord.gg/cXThyp7D6P
[*] Exegol documentation: https://exegol.rtfd.io/
[D] Pip installation: Off 🪓                                                                                                          
[D] Git source installation: On ✔                                                                                                     
[D] Host OS: Mac (Docker desktop)                                                                                                     
[D] Arch: arm64                                                                                                                       
[D] Docker desktop: On ✔                                                                                                              
[D] Shell type: Mac                                                                                                                   
[D] Last wrapper update check: 13/11/2024                                                                                             

[*] Starting exegol                                                                                                                   
[D] Attribute not found in parameters: multicontainertag                                                                              
[!] No containers have been created yet                                                                                               
[V] Configuring new exegol container                                                                                                  
[D] Attribute not found in parameters: multiimagetag                                                                                  
[V] Loading every Exegol images                                                                                                       
[D] Fetching remote image tags, digests and sizes                                                                                     
[D] Fetching information from https://hub.docker.com/v2/repositories/nwodtuhs/exegol/tags?page=1&page_size=20                         
[D] Fetching information from https://hub.docker.com/v2/repositories/nwodtuhs/exegol/tags?page=2&page_size=20                         
[D] Fetching information from https://hub.docker.com/v2/repositories/nwodtuhs/exegol/tags?page=3&page_size=20                         
[D] Max page limit reached. In non-verbose mode, downloads will stop there.                                                           
[D] Fetching information from https://hub.docker.com/v2/repositories/nwodtuhs/exegol/tags?page=4&page_size=20                         
[V] Retrieve local Exegol images                                                                                                      
[D] Fetching local image tags, digests (and other attributes)                                                                         
[D] Comparing and merging local and remote images data                                                                                
[D] Searching a match for each image installed                                                                                        
[V] Fetch latest nightly image version                                                                                                
[D] Fetching information from https://auth.docker.io/token?scope=repository:nwodtuhs/exegol:pull&service=registry.docker.io           
[D] Fetching information from https://registry-1.docker.io/v2/nwodtuhs/exegol/manifests/nightly                                       
[D] Fetching information from                                                                                                         
https://registry-1.docker.io/v2/nwodtuhs/exegol/manifests/sha256:349de4a0971e16a71324f3d26a09a3878005fe363ea527ed11580d3bb4e0d86f     
[D] Fetching information from                                                                                                         
https://registry-1.docker.io/v2/nwodtuhs/exegol/blobs/sha256:814ee1f6a256a997460db0914b569b497fa5258b66e9117592f77708129109b8         
[V] Images fetched                                                                                                                    
[D] Updating image cache data                                                                                                         
[D] └── nightly (version: c2bd89ee)     → (remote) sha256:0007e459a047965849ddf643ec97d1159687f5cfe3515a09c7a9612093521d7b            
[D] └── web (version: 3.1.5)    → (remote) sha256:1c20b1a8b5efda957059a7706158ae2bc9d5a4693b3da0d6fd94ade0def8e25b                    
[D] └── osint (version: 3.1.5)  → (remote) sha256:a2226781ddb2ef9b2649e4943411b6a8d84c2def753ea9e1a9a4e0fea709c622                    
[D] └── light (version: 3.1.5)  → (remote) sha256:f06b9ea8750f06a1b26a40fffb78e7744a6b2bc525861d4c5e9be6e86abc3313                    
[D] └── ad (version: 3.1.5)     → (remote) sha256:ef39f2f7a325403d0e26dca88cd6b9f5ed48470402c2de64cab4e567ed6ace40                    
[D] └── full (version: 3.1.5)   → (remote) sha256:a1cbe6d10fca109aa436c287faff94a6b556bfbefe9853af69bfd5f146e6bc62                    

🛸 Available images                                                                                            
┌───────────────┬─────────────────┬───────────────┬──────────────┬──────────────────┬─────────────────────────┐
│ Id            │ Image tag       │ Download size │ Size on disk │ Build date (UTC) │ Status                  │
├───────────────┼─────────────────┼───────────────┼──────────────┼──────────────────┼─────────────────────────┤
│ 0007e459a047  │ nightly (arm64) │ 23.0GB        │ 23.0GB       │ 08/11/2024 21:56 │ Up to date (v.c2bd89ee) │
│ Not installed │ web (arm64)     │ 10.8GB        │ ~28.1GB      │ N/A              │ Not installed           │
│ Not installed │ osint (arm64)   │ 5.9GB         │ ~15.4GB      │ N/A              │ Not installed           │
│ Not installed │ light (arm64)   │ 6.8GB         │ ~17.6GB      │ N/A              │ Not installed           │
│ Not installed │ ad (arm64)      │ 17.0GB        │ ~44.2GB      │ N/A              │ Not installed           │
│ Not installed │ full (arm64)    │ 22.9GB        │ ~59.5GB      │ N/A              │ Not installed           │
└───────────────┴─────────────────┴───────────────┴──────────────┴──────────────────┴─────────────────────────┘

[*] You can use a name that does not already exist to build a new image from local sources                                            
[?] Select an image by its name (nightly): 
[!] Docker Desktop configuration file not found: '/Users/MySecretName/Library/Group Containers/group.com.docker/settings.json'               
[-] Bind volume from /Users/MySecretName/Exegol/exegol/utils/imgsync/spawn.sh is not possible, Docker Desktop configuration is incorrect.    
[!] You need to modify the Docker Desktop config and add this path (or the root directory) in Docker Desktop > Preferences > Resources
> File Sharing configuration.

Exception

No response

Anything else?

I tried to copy the file settings-store.json -> settings.json but the following error is always present : [-] Bind volume from /Users/MySecretName/Exegol/exegol/utils/imgsync/spawn.sh is not possible, Docker Desktop configuration is incorrect.
[!] You need to modify the Docker Desktop config and add this path (or the root directory) in Docker Desktop > Preferences > Resources > File Sharing configuration.

than0s-HZS commented 9 hours ago

Install a older version of Docker Desktop https://docs.docker.com/desktop/release-notes/