Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker swarm using --network="host"| #3164

Open
adrianatrevinoe opened this issue Feb 5, 2024 · 0 comments
Open

docker swarm using --network="host"| #3164

adrianatrevinoe opened this issue Feb 5, 2024 · 0 comments

Comments

@adrianatrevinoe
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant