I want to create a docker image where I add a file to the /dev folder. I'm using this Dockerfile:
FROM ubuntu:bionic
COPY test.txt /dev/
After building this with:
docker build -t test .
I get a docker image where nothing has been added to the /dev folder. No error has been thrown by docker build.
I find this very strange because copying to different folders works fine. For example
COPY test.txt /COPY test.txt /root/COPY test.txt /home/
all work fine.
Does the /dev folder have some special permissions? How do I copy a file to the /dev folder? 
I'm using Docker Toolbox on windows.