Skip to content
Snippets Groups Projects
Commit 4bbc1f66 authored by Edane IBRAM (95053)'s avatar Edane IBRAM (95053)
Browse files

Add README.md

parent cf6bb95e
No related branches found
No related tags found
No related merge requests found
Pipeline #222 canceled
# README
This docker image contains the [can-utils package](https://github.com/linux-can/can-utils).
To be able to use/run it, the following steps should be followed:
1. The host exposes the virtual interface vcan0. To create a virtual can port **on the host**:
* sudo modprobe vcan
* sudo ip link add dev vcan0 type vcan
* sudo ip link set up vcan0
2. Generate access token
* go to [Access Tokens page](https://gitlab.cs.pub.ro/-/profile/personal_access_tokens)
* add token name
* select read_registry and write_registry
* create token
* save the token to a file, as it is visible only once
3. Login
* docker login gitlab.cs.pub.ro:5050 -p "INSERT_ACCESS_TOKEN*
4. Pull the image
* docker pull gitlab.cs.pub.ro:5050/reaact/can-container
5. Run it
* docker run --name ubuntu-can --network=host gitlab.cs.pub.ro:5050/reaact/can-container:latest
6. Scan the traffic **on the host**
* candump vcan0
Useful links:
* https://www.lagerdata.com/articles/forwarding-can-bus-traffic-to-a-docker-container-using-vxcan-on-raspberry-pi
* https://stackoverflow.com/questions/21022749/how-to-create-virtual-can-port-on-linux-c
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