Answers: <p>You are trying to run an x86 image on a non-x86 processor.  That will not work.</p>
  <p>You need to find or build an image for the linux/arm64/v8 platform, and use that.   You can read more about multi platform images at <a href="https://docs.docker.com/build/building/multi-platform/" rel="nofollow noreferrer">https://docs.docker.com/build/building/multi-platform/</a></p>
  
Answers: CC BY-SA 4.0
Answers: 2023-03-06T07:50:49.653Z
Answers: 2023-03-06T07:50:49.653Z
Answers: Thorbjørn Ravn Andersen
Body: <p>I'm trying to set up a VPN client in a Docker service with Docker Compose, but I'm running into some issues.</p>
  <p>ExpressVPN:
  I tried this <a href="https://github.com/polkaned/dockerfiles/tree/master/expressvpn" rel="nofollow noreferrer">ExpressVPN container</a>, but it just keeps restarting constantly. Here's my code:</p>
  <pre class="lang-yaml prettyprint-override"><code>expressvpn:
    container_name: expressvpn
    image: polkaned/expressvpn
    environment:
      - ACTIVATION_CODE=&lt;code&gt;
    cap_add:
      - NET_ADMIN
    devices: 
      - /dev/net/tun
    stdin_open: true
    tty: true
    command: /bin/bash
    privileged: true
    ports:
      - 6881:6881 # QBittorrent
    restart: unless-stopped
  </code></pre>
  <p>OpenVPN:
  I tried installing this <a href="https://dockovpn.io/" rel="nofollow noreferrer">DockOVPN client</a>, but the instructions say to run this command to set up/configure:</p>
  <pre><code>docker run -it --rm --cap-add=NET_ADMIN \
      -p 1194:1194/udp -p 80:8080/tcp \
      -e HOST_ADDR=$(curl -s https://api.ipify.org) \
      --name dockovpn alekslitvinenk/openvpn
  </code></pre>
  <p>When I run that I get this error:</p>
  <blockquote>
  <p>WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested</p>
  </blockquote>
  <blockquote>
  <p>standard_init_linux.go:219: exec user process caused: exec format error</p>
  </blockquote>
  <p>I also tried this <a href="https://hub.docker.com/r/linuxserver/openvpn-as" rel="nofollow noreferrer">linuxserver.io OpenVPN client</a>, but this one is also restarting constantly.</p>
  <p>Long story short, I'm just trying to find any dockerized VPN client that works. Can anyone either tell me what I'm doing wrong or recommend an alternate solution?</p>
  
Tags: <docker><docker-compose>
Title: Best dockerized VPN clients?
UserDisplayName: jerdub1993
ThreadText: # Best dockerized VPN clients?
  
  (Asked by: username_0 on 2023-03-06)
  
  I'm trying to set up a VPN client in a Docker service with Docker Compose, but I'm running into some issues.
  
  ExpressVPN:
  I tried this [ExpressVPN container](https://github.com/polkaned/dockerfiles/tree/master/expressvpn), but it just keeps restarting constantly. Here's my code:
  
  ```yaml
  expressvpn:
    container_name: expressvpn
    image: polkaned/expressvpn
    environment:
      - ACTIVATION_CODE=<code>
    cap_add:
      - NET_ADMIN
    devices: 
      - /dev/net/tun
    stdin_open: true
    tty: true
    command: /bin/bash
    privileged: true
    ports:
      - 6881:6881 # QBittorrent
    restart: unless-stopped
  
  ```
  
  OpenVPN:
  I tried installing this [DockOVPN client](https://dockovpn.io/), but the instructions say to run this command to set up/configure:
  
  ```
  docker run -it --rm --cap-add=NET_ADMIN \
      -p 1194:1194/udp -p 80:8080/tcp \
      -e HOST_ADDR=$(curl -s https://api.ipify.org) \
      --name dockovpn alekslitvinenk/openvpn
  
  ```
  
  When I run that I get this error:
  
  > WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
  
  > standard\_init\_linux.go:219: exec user process caused: exec format error
  
  I also tried this [linuxserver.io OpenVPN client](https://hub.docker.com/r/linuxserver/openvpn-as), but this one is also restarting constantly.
  
  Long story short, I'm just trying to find any dockerized VPN client that works. Can anyone either tell me what I'm doing wrong or recommend an alternate solution?
  
  **Tags:** docker, docker-compose
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-03-06. Score: 1
  
  You are trying to run an x86 image on a non-x86 processor. That will not work.
  
  You need to find or build an image for the linux/arm64/v8 platform, and use that. You can read more about multi platform images at <https://docs.docker.com/build/building/multi-platform/>
  
  
  ---
  
  