Docker Community Forums

Share and learn in the Docker community.

Ignoring unsupported options: privileged

docker

(Bitroid) #1

Hello team,

i have added privilege in the stack file but docker is running in non - privileged mode and getting below warning.

Ignoring unsupported options: privileged

Can you please advise how to add privilege in the docker stack yaml file.

Code:

version: '3.7'

services:

  main:
    image: bitroid/bitroidjenkins:stable
    privileged: true
    ports:
      - 8080:8080
      - 50000:50000
    secrets:
      - jenkins-user
      - jenkins-pass
    
secrets:
  jenkins-user:
    file: ./jenuser
  jenkins-pass:
    file: ./jenpass

(Martin Terp) #2

HI :slight_smile:

This is currently not supported, see: https://github.com/moby/moby/issues/24862