Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automotive-comm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
REAACT
automotive-comm
Commits
4bbc1f66
Commit
4bbc1f66
authored
3 years ago
by
Edane IBRAM (95053)
Browse files
Options
Downloads
Patches
Plain Diff
Add README.md
parent
cf6bb95e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#222
canceled
3 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+27
-0
27 additions, 0 deletions
README.md
with
27 additions
and
0 deletions
README.md
0 → 100644
+
27
−
0
View file @
4bbc1f66
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment