lockc-project / lockc

Making containers more secure with eBPF and Linux Security Modules (LSM)
https://lockc-project.github.io/
Apache License 2.0
218 stars 19 forks source link

result of dapper cargo test ,unknown instruction: INCLUDE+ #175

Open leiqi96 opened 2 years ago

leiqi96 commented 2 years ago

I have use command DOCKER_BUILDKIT=1 dapper cargo build to build lockc. then I want to test, but it failed.

# dapper cargo test Sending build context to Docker daemon 9.758MB Error response from daemon: dockerfile parse error line 2: unknown instruction: INCLUDE+ FATA[0000] exit status 1

vadorovsky commented 2 years ago

Hi @leiqi96,

Can you try DOCKER_BUILDKIT=1 dapper cargo test?

The INCLUDE+ instruction comes from Dockerfile+ extension and using such extensions works only with Docker Buildkit enabled.

We probably need to somehow document to always enable DOCKER_BUILDKIT, for people who are not using the newest Docker versions.

leiqi96 commented 2 years ago

thanks, it works