Skip to content

Docker-compose.yml and Version 3.7 dont support cap_add #468

Answered by qdm12
iluvatyr asked this question in Q&A
Discussion options

You must be logged in to vote

You can use docker-compose for it. Not sure which version, I use 3.8 but it might be possible with < 3.8.

That's my config:

version: "3.8"
services:
  gluetunnyc:
    image: qmcgaw/gluetun
    cap_add:
      - NET_ADMIN
    volumes:
      - gluetun:/gluetun
    secrets:
      - openvpn_user
      - openvpn_password

secrets:
  openvpn_user:
    file: ./openvpn_user
  openvpn_password:
    file: ./openvpn_password

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@qdm12
Comment options

@iluvatyr
Comment options

@qdm12
Comment options

Answer selected by iluvatyr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants