# Enabling a virtual canbus device in docker

**URL:** <https://discourse.nodered.org/t/enabling-a-virtual-canbus-device-in-docker/88322>\
**Category:** General\
**Tags:** docker\
**Created:** [28 May 2024 12:40 UTC](https://discourse.nodered.org/t/enabling-a-virtual-canbus-device-in-docker/88322 "2024-05-28T12:40:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASmolders](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@ASmolders](https://discourse.nodered.org/u/ASmolders)\
**Post date:** [28 May 2024 12:40 UTC](https://discourse.nodered.org/t/enabling-a-virtual-canbus-device-in-docker/88322/1 "2024-05-28T12:40:52Z")

</div>

Hello,

I'm trying to set up a development environment with docker since I need a virtual canbus (vcan) device under windows.  
I am using the latest docker image `nodered/node-red:latest` following the guide under documentation.

The plan is to use the "node-red-contrib-can" module but I would need to set up a virtual can interface.  
I know the node-red docker is alpine linux based and I managed to install can-utils.  
But I think the can module/kernel options are turned off.

When I run `/usr/src/node-red # modprobe vcan`  
the result is  
`modprobe: FATAL: Module vcan not found in directory /lib/modules/5.15.146.1-microsoft-standard-WSL2`

Would I need to build my own [custom docker image](https://nodered.org/docs/getting-started/docker-custom) (I did find some guide)?  
Or is it something simple I am missing?

Note: I do not have an actual can device attached. I just need a virtual one in a docker container.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 August 2024 12:40 UTC](https://discourse.nodered.org/t/enabling-a-virtual-canbus-device-in-docker/88322/2 "2024-08-26T12:40:57Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
