moby / moby/swarmkit

docker swarm using --network="host"|

Open
#3,164 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
3.7k
Forks
676
Avg merge
4d 9h
Merged PRs (30d)
6

Description

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!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Docker Swarm service configuration shown in the issue and compare its network interfaces with a container started using docker run --network="host". Check the Swarm networking behavior for the external host network and virtual CAN interfaces; done means identifying whether this configuration is supported and documenting a verified configuration or limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
infrastructure, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.