FCP-INDI / cpac

A convenience wrapper for https://github.com/FCP-INDI/C-PAC that provides a simple command line interface.
https://fcp-indi.github.io/docs/latest/user/cpac
MIT License
4 stars 3 forks source link

šŸ› Bad Request ("Duplicate mount point") #16

Open shnizzedy opened 3 years ago

shnizzedy commented 3 years ago

Describe the bug

docker.errors.APIError: 400 Client Error for http+docker://localhost/v1.40/containers/create: Bad Request ("Duplicate mount point: /home/jclucas/CNL/GitHub/C-PAC")

To Reproduce Steps to reproduce the behavior:

  1. run cpac -B $PWD:/code $BIDS_DIR $OUTPUTS test_config
  2. See error

Expected behavior

cpac would bind the custom binding in place of the automatic binding (i.e.,

Loading šŸ³ Docker
Loading šŸ³ fcpindi/c-pac:latest with these directory bindings:
  local                                Docker                       mode
  -----------------------------------  ---------------------------  ------
  /home/jclucas/CNL/GitHub/C-PAC       /code                        rw

instead of trying to bind both

Loading šŸ³ Docker
Loading šŸ³ fcpindi/c-pac:latest with these directory bindings:
  local                                Docker                           mode
  -----------------------------------  ------------------------------  ------
  /home/jclucas/CNL/GitHub/C-PAC       /home/jclucas/CNL/GitHub/C-PAC  rw
  /home/jclucas/CNL/GitHub/C-PAC       /code                           rw

)

Screenshots

Versions

Additional context