Docker Community Forums

Share and learn in the Docker community.

How can I mount a docker container among two different ip addresses?



I am trying to mount a volume among a docker container and a NAS folder (with a different IP address).
I am ussing this code:

docker run --ip =(NAS IP) -v ~/var/services/NetBackup/trim_fq:data/ --rm -it ef1f160ec6db bash

and suddenly I get this error:

docker: Error response from daemon: invalid IPv4 address: =(NAS IP)
See ‘docker run --help’.

I am absolutely confused because I have read in another forums that I should create my own net. Could someone solve my problem?