Make a deepstream docker image

I modified deepstream,I want to use this deepstream to make a docker image and run it.but failed.
my deepstream path is /opt/nvidia/deepstream/deepstream5.0
my Dockerfile path is /opt/nvidia/deepstream/
Dockerfile content:

COPY ./deepstream-5.0/fck /opt/nvidia/deepstream/deepstream-5.0/


The trouble comes:
root@nvidia-desktop:/opt/nvidia/deepstream# docker build -t myapp:1.0 .

root@nvidia-desktop:/opt/nvidia/deepstream# docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix myapp:1.0
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused “process_linux.go:449: container init caused “process_linux.go:432: running prestart hook 0 caused \“error running hook: exit status 1, stdout: , stderr: unknown driver capability: all\\n\”””: unknown.

How to create my own deepstream docker image and how to write a dockerfile

can refer to Running the Deepstream Python apps in container, headles to build your docker?