swarmkit icon indicating copy to clipboard operation
swarmkit copied to clipboard

docker swarm using --network="host"|

Open adrianatrevinoe opened this issue 2 years ago • 0 comments

hello! I am using docker swarm, when I was using docker container I did docker run --network="host" and messages from my host machine (virtual bus can messages) where able to appear on my docker container with this command. Right now I am trying to do the same with swarm but I am having trouble and I really have not found an answer in all documentation that I have investigated.

I tried this but the messages are still not appearking, so before if I did ifconfig -a | grep can in my host I got vcan0, vcan1 and vcan2 and in my docekr container i got the same, now this doesnt work and it says as I have no virtual buses set up. version: '3.7'

services:
  bb-app:
    image: docker.deere.com/can_bus:network
    command: sleep 10000
    networks:
      - outside

networks:
  outside:
    name: host
    external: true

Thanks!

adrianatrevinoe avatar Feb 05 '24 22:02 adrianatrevinoe