Docker Community Forums

Share and learn in the Docker community.

Docker run command errors out

(Chilu) #1


I am trying to run docker command via Jenkins but the build errors out with below error message.

docker -H :4243 run --rm -d -it --name XXXX -v login1:/var/log/ -v /etc/localtime:/etc/localtime:ro -network microservicesnet XXXXXXX/mobility/commonservices-login:130
Warning: ‘-n’ is deprecated, it will be removed soon. See usage.
flag provided but not defined: -network
See ‘docker run --help’.

But the same command works when i execute it manually.