0

I was trying to run a container with seccomp profile using Docker SDK, and this error showed up

"Decoding seccomp profile failed: invalid character 'd' looking for beginning of value"

Below is the code

import docker
client = docker.from_env()

security_opt = [
      "seccomp=default.json"
]
container = client.containers.run(image="nginx", 
                                  name="pikachu2",
                                  security_opt=security_opt, 
                                  detach=True)

I've tried to search from other sources (this and this, for example), but none of them worked. I'd like to know what exactly is the problem and how to fix it. Thank you.

Long
  • 1,482
  • 21
  • 33

0 Answers0