Skip to content

Capability not found #1949

Closed
Closed

Description

@jmformenti

We are getting this exception trying to run a container:

org.testcontainers.shaded.com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not deserialize value of type com.github.dockerjava.api.model.Capability from String "BPF": value not one of declared Enum instance names: [ALL, SYS_BOOT, DAC_OVERRIDE, NET_RAW, BLOCK_SUSPEND, FOWNER, IPC_LOCK, IPC_OWNER, SYS_PACCT, NET_BIND_SERVICE, WAKE_ALARM, FSETID, DAC_READ_SEARCH, SYS_CHROOT, SYS_RAWIO, SYS_ADMIN, KILL, MAC_ADMIN, SYS_RESOURCE, CHOWN, SETPCAP, SYS_PTRACE, NET_ADMIN, SETFCAP, SYS_NICE, LINUX_IMMUTABLE, AUDIT_CONTROL, LEASE, AUDIT_WRITE, SYS_MODULE, MKNOD, SYSLOG, MAC_OVERRIDE, SYS_TIME, SETGID, SETUID, SYS_TTY_CONFIG, NET_BROADCAST]

According to docker docs: https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities, it exists more possible values.

I think that to fix the error just need to add the missing values to com.github.dockerjava.api.model.Capability.

Would be possible add the missing values?

Activity

  1. eddumelendez commented on Sep 19, 2022

    @eddumelendez
    Member

    thanks for reporting this @jmformenti ! would you like to contribute?

  2. jmformenti commented on Sep 20, 2022

    @jmformenti
    ContributorAuthor

    Yes, of course, I'll try to create a new PR

  3. jmformenti commented on Sep 20, 2022

    @jmformenti
    ContributorAuthor

    Opened PR #1955

  4. added this to the next milestone on Sep 22, 2022
  5. Rkuro commented on Oct 15, 2022

    @Rkuro

    @eddumelendez can we publish a new version (or at least an RC) now that #1955 has been merged? We are hitting this as well

  6. eddumelendez commented on Nov 23, 2022

    @eddumelendez
    Member

    it was released as part of 3.2.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions