<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>

CC BY-SA 4.0
2023-03-06T07:50:49.653Z
2023-03-06T07:50:49.653Z
Thorbjørn Ravn Andersen
<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>

<docker><docker-compose>
Best dockerized VPN clients?
jerdub1993
# 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, but it just keeps restarting constantly. Here's my code:
expressvpn:
  container_name: expressvpn
  image: polkaned/expressvpn
  environment:
    - ACTIVATION_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, 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, 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/>


---

