Rabbitmq articles --- the code in the docker container accesses the mq of the host machine

Rabbitmq article - the code in the docker container accesses the mq of the host machine

Since the docker container does not communicate with the host, you need to add this–network=“host”

docker run -it --name py_sj --runtime=nvidia -v /home/app/yolov5_py:/workspace --network="host" py_11.3:latest /bin/bash

Note:

  • –network="host" communicate with the local machine
  • --runtime=nvidia uses nvidia-docker to use gpu

Guess you like

Origin blog.csdn.net/m0_46825740/article/details/129382109