Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63233

Unable to use it with podman-docker

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Blocker Blocker
    • docker-workflow-plugin
    • CentOS 7.8 using podman-1.6.4-18.el7_8.x86_64
      Plugin version: Docker Pipeline 1.23

      Hi developers,

      we use podman with the docker emulation instant of native docker.

      The pull of the image works, but the start of the container fails with:

       Posting build status of FAILED to Git for commit id [c0fd73dba1f80622cff871baae31fc04ed6af5b9] and ref 'refs/heads/master'
      ERROR: The docker version is less than v1.7. Pipeline functions requiring 'docker exec' (e.g. 'docker.inside') or SELinux labeling will not work.
      Finished: FAILURE

      But this version contains the needed command:

      docker exec --help
      Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
      Run a process in a running containerDescription:
        Execute the specified command inside a running container.
      Usage:
        podman exec [flags] CONTAINER [COMMAND [ARG...]]Examples:
        podman exec -it ctrID ls
        podman exec -it -w /tmp myCtr pwd
        podman exec --user root ctrID lsFlags:
            --detach-keys string   Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _
        -e, --env stringArray      Set environment variables
        -i, --interactive          Keep STDIN open even if not attached
        -l, --latest               Act on the latest container podman is aware of
            --preserve-fds int     Pass N additional file descriptors to the container
            --privileged           Give the process extended Linux capabilities inside the container.  The default is false
        -t, --tty                  Allocate a pseudo-TTY. The default is false
        -u, --user string          Sets the username or UID used and optionally the groupname or GID for the specified command
        -w, --workdir string       Working directory inside the container
       

        1. plugin-user.patch
          0.9 kB
          mdc system
        2. plugin-version.patch
          1 kB
          mdc system

            Unassigned Unassigned
            mdc_system mdc system
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: