bids-apps / CPAC

BIDS Application for the Configurable Pipeline for the Analysis of Connectomes (C-PAC)
Apache License 2.0
14 stars 18 forks source link

Docker image GUI on Mac #38

Closed chrisfoulon closed 5 years ago

chrisfoulon commented 5 years ago

Hi!

I tried to run the GUI with the docker image on Mac using the instructions on GitHub. XQuartz was already installed, I authorized the connections from network clients, added the IP address to the xhost, and finally, I tried to run the command: docker run -i --rm \ --privileged \ -e DISPLAY=$ip:0 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -v /tmp:/scratch \ -v /Users/filo/data/ds005:/bids_dataset \ -v /Users/filo/outputs:/outputs \ bids/cpac \ /bids_dataset /outputs GUI

changing the directories with mine.

I got the following error: No protocol specified Namespace(analysis_level='gui', aws_input_creds=None, aws_output_creds=None, bids_dir='/bids_dataset', bids_validator_config=None, data_config_file=None, disable_file_logging=False, mem_gb=None, mem_mb=None, n_cpus='1', output_dir='/outputs', participant_label=None, participant_ndx=None, pipeline_file='/cpac_resources/default_pipeline.yaml', save_working_dir=False, skip_bids_validator=False) Starting CPAC GUI Unable to access the X Display, is $DISPLAY set properly?

The XQuartz display doesn't seem to like the ip address, I also tried directly with the $DISPLAY variable but it produces the same error.

Thank you in advance for your help, Chris.