Skip to content
Snippets Groups Projects
Commit 533abd4e authored by Claudiu MILEA (95030)'s avatar Claudiu MILEA (95030)
Browse files

Add Dockerfile for basic container which uses can-utils in order to generate...

Add Dockerfile for basic container which uses can-utils in order to generate random traffic on a virtual interface
parents
No related branches found
No related tags found
No related merge requests found
Pipeline #220 canceled
# The host exposes the virtual interface vcan0:
# https://stackoverflow.com/questions/21022749/how-to-create-virtual-can-port-on-linux-c
# sudo modprobe vcan
# sudo ip link add dev vcan0 type vcan
# sudo ip link set up vcan0
FROM ubuntu:20.04
RUN apt-get update -y
RUN apt-get install can-utils
# For the moment, expose the host network to the container for vcan0 visibility
# https://www.lagerdata.com/articles/forwarding-can-bus-traffic-to-a-docker-container-using-vxcan-on-raspberry-pi
CMD cangen vcan0
# On the host system, run 'candump vlan0' command to capture generated CAN traffic
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment