# Luks encryption for a docker container

**URL:** <https://forums.docker.com/t/luks-encryption-for-a-docker-container/74360>\
**Category:** General\
**Created:** [May 6, 2019, 2:27pm UTC](https://forums.docker.com/t/luks-encryption-for-a-docker-container/74360 "2019-05-06T14:27:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![h.van.hulst](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/h.van.hulst/32/23661_2.png) [@h.van.hulst](https://forums.docker.com/u/h.van.hulst)\
**Post date:** [May 6, 2019, 2:27pm UTC](https://forums.docker.com/t/luks-encryption-for-a-docker-container/74360/1 "2019-05-06T14:27:13Z")

</div>

Hi all,

Is there a way to secure the information inside a docker container so that the files are not accessible for the root engineer without accessing the docker container?

I am trying to make a secure container database so that the database can only access the database files.  
Is there a way to attach a block device on a Linux container and inside the container I would like to mount the device with a encryption key only knows by the container?

I found only some documentation on docker-lvm-plugin but I can not get it up and running with docker 18.9

Kindly regards,

Han
