[GH-ISSUE #2070] Error code 202 / ServerContainerMissingError on clean KVM Ubuntu 22.04 VPS (amnezia-awg container disappears) #912

Open
opened 2026-10-14 03:30:55 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @nep0m on GitHub (Dec 16, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2070

When trying to install AmneziaWG on a clean KVM VPS with Ubuntu and working Docker, the installation always fails with error code 202 (ServerContainerMissingError).
From the server side, the amnezia-awg container is created and started, but immediately exits and disappears from docker ps -a, so the client reports that the container is missing.​

Environment
VPS type: KVM
OS: Ubuntu 22.04.5 LTS (Jammy)
Kernel: 5.15.0-164-generic
RAM: 2 GB
Disk: 20 GB
Virtualization: KVM (not OpenVZ / LXC)
Docker info:

Client: Docker Engine - Community
 Version:    29.1.3
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.30.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v5.0.0
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 2
 Server Version: 29.1.3
 Storage Driver: overlayfs
  driver-type: io.containerd.snapshotter.v1
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 ...
 Firewall Backend: iptables

There is enough disk and RAM:
df -h

Filesystem      Size  Used Avail Use% Mounted on
tmpfs           197M  1.1M  196M   1% /run
/dev/sda1        20G  4.9G   14G  26% /
tmpfs           982M     0  982M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           197M  4.0K  197M   1% /run/user/0

free -h

               total        used        free      shared  buff/cache   available
 Mem:           1.9Gi       237Mi       1.0Gi       1.0Mi       665Mi       1.5Gi
Swap:             0B          0B          0B

Network and DNS are fine (ping/curl to external sites work):
ping -c 3 google.com

PING google.com(ams16s30-in-x0e.1e100.net (2a00:1450:400e:805::200e)) 56 data bytes
64 bytes from ams16s37-in-x0e.1e100.net (2a00:1450:400e:805::200e): icmp_seq=1 ttl=120 time=2.69 ms
64 bytes from ams16s30-in-x0e.1e100.net (2a00:1450:400e:805::200e): icmp_seq=2 ttl=120 time=8.84 ms
64 bytes from ams16s37-in-x0e.1e100.net (2a00:1450:400e:805::200e): icmp_seq=3 ttl=120 time=0.652 ms

--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.652/4.060/8.837/3.478 ms

wget -S https://www.google.com

--2025-12-16 16:11:46--  https://www.google.com/
Resolving www.google.com (www.google.com)... 2a00:1450:400e:80e::2004, 216.58.208.100
Connecting to www.google.com (www.google.com)|2a00:1450:400e:80e::2004|:443... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 200 OK

AmneziaVPN client: 4.8.10.0 (Windows 11 24H2 x86_64)

What I did

Clean KVM VPS, Ubuntu installed from provider template.

Installed Docker from the official Docker repository (not docker.io), verified it works:

docker run --rm alpine echo ok
docker run --rm hello-world

ok

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
   (amd64)
3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/

For more examples and ideas, visit:
https://docs.docker.com/get-started/

Connected this VPS in AmneziaVPN client on Windows and tried to install AmneziaWG (self‑hosted).

Installation runs through all steps (Docker installation, image build, container run, docker network connect, docker cp of script).

At the end, the client shows error code 202.

Observed behavior on the server

Right after the failed installation:

docker ps -a

CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
(no amnezia-awg container)

docker logs amnezia-awg returns:

Error response from daemon: No such container: amnezia-awg

Amnezia log:

[2025-12-16 15:43:39.580Z] [DEBUG] Amnezia  : >>>>  16777251  Event is caught by StartPage
[2025-12-16 15:43:45.900Z] [DEBUG] Amnezia  : >>>>  16777249  Event is caught by StartPage
[2025-12-16 15:43:55.282Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:43:55.282Z] [DEBUG] Amnezia  : uname -a
[2025-12-16 15:43:55.924Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:43:56.021Z] [DEBUG] Amnezia  : ServerController::runScript finished
[2025-12-16 15:43:58.803Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:43:58.803Z] [DEBUG] Amnezia  : sudo docker ps --format '{{.Names}} {{.Ports}}'
[2025-12-16 15:43:58.997Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:43:59.124Z] [DEBUG] Amnezia  : ServerController::runScript finished
[2025-12-16 15:43:59.124Z] [DEBUG] Amnezia  : ServerController::setupContainer amnezia-awg
[2025-12-16 15:43:59.124Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:43:59.126Z] [DEBUG] Amnezia  : if which apt-get > /dev/null 2>&1; then pm=$(which apt-get); opt="--version";\
elif which dnf > /dev/null 2>&1; then pm=$(which dnf); opt="--version";\
elif which yum > /dev/null 2>&1; then pm=$(which yum); opt="--version";\
elif which zypper > /dev/null 2>&1; then pm=$(which zypper); opt="--version";\
elif which pacman > /dev/null 2>&1; then pm=$(which pacman); opt="--version";\
else pm="uname"; opt="-a";\
fi;\
CUR_USER=$(whoami 2>/dev/null || echo $HOME | sed 's/.*\///');\
echo $LANG | grep -qE '^(en_US.UTF-8|C.UTF-8|C)$' || export LC_ALL=C;\
sudo -K;\
cd ~;\
if [ "$CUR_USER" = "root" ] || ( groups "$CUR_USER" | grep -E '\<(sudo|wheel)\>' ); then \
  sudo -nu $CUR_USER $pm $opt > /dev/null; sudo -n $pm $opt > /dev/null;\
fi
[2025-12-16 15:43:59.378Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:43:59.569Z] [DEBUG] Amnezia  : ServerController::runScript finished
[2025-12-16 15:43:59.570Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:43:59.570Z] [DEBUG] Amnezia  : if which apt-get > /dev/null 2>&1; then LOCK_CMD="fuser"; LOCK_FILE="/var/lib/dpkg/lock-frontend";\
elif which dnf > /dev/null 2>&1; then LOCK_CMD="fuser"; LOCK_FILE="/var/cache/dnf/* /var/run/dnf/* /var/lib/dnf/* /var/lib/rpm/*";\
elif which yum > /dev/null 2>&1; then LOCK_CMD="cat"; LOCK_FILE="/var/run/yum.pid";\
elif which zypper > /dev/null 2>&1; then LOCK_CMD="cat"; LOCK_FILE="/var/run/zypp.pid";\
elif which pacman > /dev/null 2>&1; then LOCK_CMD="fuser"; LOCK_FILE="/var/lib/pacman/db.lck";\
else echo "Packet manager not found"; echo "Internal error"; exit 1; fi;\
if command -v $LOCK_CMD > /dev/null 2>&1; then sudo $LOCK_CMD $LOCK_FILE 2>/dev/null; else echo "$LOCK_CMD not installed"; fi
[2025-12-16 15:43:59.785Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:43:59.916Z] [DEBUG] Amnezia  : ServerController::runScript finished
[2025-12-16 15:43:59.916Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:43:59.916Z] [DEBUG] Amnezia  : if which apt-get > /dev/null 2>&1; then pm=$(which apt-get); silent_inst="-yq install"; check_pkgs="-yq update"; docker_pkg="docker.io"; dist="debian";\
elif which dnf > /dev/null 2>&1; then pm=$(which dnf); silent_inst="-yq install"; check_pkgs="-yq check-update"; docker_pkg="docker"; dist="fedora";\
elif which yum > /dev/null 2>&1; then pm=$(which yum); silent_inst="-y -q install"; check_pkgs="-y -q check-update"; docker_pkg="docker"; dist="centos";\
elif which zypper > /dev/null 2>&1; then pm=$(which zypper); silent_inst="-nq install"; check_pkgs="-nq refresh"; docker_pkg="docker"; dist="opensuse";\
elif which pacman > /dev/null 2>&1; then pm=$(which pacman); silent_inst="-S --noconfirm --noprogressbar --quiet"; check_pkgs="-Sup"; docker_pkg="docker"; dist="archlinux";\
else echo "Packet manager not found"; exit 1; fi;\
echo "Dist: $dist, Packet manager: $pm, Install command: $silent_inst, Check pkgs command: $check_pkgs, Docker pkg: $docker_pkg";\
if [ "$dist" = "debian" ]; then export DEBIAN_FRONTEND=noninteractive; fi;\
if ! command -v sudo > /dev/null 2>&1; then $pm $check_pkgs; $pm $silent_inst sudo; fi;\
if ! command -v fuser > /dev/null 2>&1; then sudo $pm $check_pkgs; sudo $pm $silent_inst psmisc; fi;\
if ! command -v lsof > /dev/null 2>&1; then sudo $pm $check_pkgs; sudo $pm $silent_inst lsof; fi;\
if ! command -v docker > /dev/null 2>&1; then \
  sudo $pm $check_pkgs; sudo $pm $silent_inst $docker_pkg;\
  sleep 5; sudo systemctl enable --now docker; sleep 5;\
fi;\
if [ "$(cat /sys/module/apparmor/parameters/enabled 2>/dev/null)" = "Y" ]; then \
  if ! command -v apparmor_parser > /dev/null 2>&1; then sudo $pm $check_pkgs; sudo $pm $silent_inst apparmor; fi;\
fi;\
if [ "$(systemctl is-active docker)" != "active" ]; then \
  sudo $pm $check_pkgs; sudo $pm $silent_inst $docker_pkg;\
  sleep 5; sudo systemctl start docker; sleep 5;\
fi;\
if ! command -v sudo > /dev/null 2>&1; then echo "Failed to install sudo, command not found"; exit 1; fi;\
docker --version
[2025-12-16 15:44:00.178Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:44:00.434Z] [DEBUG] Amnezia  : ServerController::runScript finished
[2025-12-16 15:44:00.434Z] [DEBUG] Amnezia  : ServerController::installDockerWorker Dist: debian, Packet manager: /usr/bin/apt-get, Install command: -yq install, Check pkgs command: -yq update, Docker pkg: docker.io

Docker version 29.1.3, build f52814d
[2025-12-16 15:44:00.434Z] [DEBUG] Amnezia  : ServerController::setupContainer installDockerWorker finished
[2025-12-16 15:44:00.434Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:44:00.435Z] [DEBUG] Amnezia  : which lsof > /dev/null 2>&1 || true && sudo lsof -i -P -n 2>/dev/null | grep -E ':36861 ' | grep -i udp
[2025-12-16 15:44:00.620Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:44:00.759Z] [DEBUG] Amnezia  : ServerController::runScript finished
[2025-12-16 15:44:00.759Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:44:00.759Z] [DEBUG] Amnezia  : which lsof > /dev/null 2>&1 || true && sudo lsof -i -P -n 2>/dev/null | grep -E ':36861 ' | grep -i udp
[2025-12-16 15:44:01.010Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:44:01.175Z] [DEBUG] Amnezia  : ServerController::runScript finished
[2025-12-16 15:44:01.176Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:44:01.176Z] [DEBUG] Amnezia  : CUR_USER=$(whoami 2>/dev/null || echo $HOME | sed 's/.*\///');\
sudo mkdir -p /opt/amnezia/amnezia-awg;\
sudo chown $CUR_USER /opt/amnezia/amnezia-awg;\
if ! sudo docker network ls | grep -q amnezia-dns-net; then sudo docker network create \
  --driver bridge \
  --subnet=172.29.172.0/24 \
  --opt com.docker.network.bridge.name=amn0 \
  amnezia-dns-net;\
fi
[2025-12-16 15:44:01.432Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:44:01.603Z] [DEBUG] Amnezia  : ServerController::runScript finished
[2025-12-16 15:44:01.603Z] [DEBUG] Amnezia  : ServerController::setupContainer prepareHostWorker finished
[2025-12-16 15:44:01.603Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:44:01.603Z] [DEBUG] Amnezia  : sudo docker stop amnezia-awg;\
sudo docker rm -fv amnezia-awg;\
sudo docker rmi amnezia-awg
[2025-12-16 15:44:01.853Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:44:02.061Z] [DEBUG] Amnezia  : ServerController::runScript finished
[2025-12-16 15:44:02.062Z] [DEBUG] Amnezia  : ServerController::setupContainer removeContainer finished
[2025-12-16 15:44:02.062Z] [DEBUG] Amnezia  : buildContainerWorker start
[2025-12-16 15:44:02.062Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:44:02.062Z] [DEBUG] Amnezia  : sudo rm /opt/amnezia/amnezia-awg/Dockerfile
[2025-12-16 15:44:02.193Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:44:02.411Z] [DEBUG] Amnezia  : ServerController::runScript finished
[2025-12-16 15:44:03.191Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:44:03.191Z] [DEBUG] Amnezia  : sudo docker build --no-cache --pull -t amnezia-awg /opt/amnezia/amnezia-awg
[2025-12-16 15:44:03.427Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:44:14.729Z] [DEBUG] Amnezia  : ServerController::runScript finished
[2025-12-16 15:44:14.729Z] [DEBUG] Amnezia  : ServerController::setupContainer buildContainerWorker finished
[2025-12-16 15:44:14.729Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:44:14.729Z] [DEBUG] Amnezia  : sudo docker run -d \
--log-driver none \
--restart always \
--privileged \
--cap-add=NET_ADMIN \
--cap-add=SYS_MODULE \
-p 36861:36861/udp \
-v /lib/modules:/lib/modules \
--sysctl="net.ipv4.conf.all.src_valid_mark=1" \
--name amnezia-awg \
amnezia-awg
[2025-12-16 15:44:14.908Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:44:15.946Z] [DEBUG] Amnezia  : sudo docker network connect amnezia-dns-net amnezia-awg
[2025-12-16 15:44:16.329Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:44:16.463Z] [DEBUG] Amnezia  : ServerController::runScript finished
[2025-12-16 15:44:16.463Z] [DEBUG] Amnezia  : ServerController::setupContainer runContainerWorker finished
[2025-12-16 15:44:17.269Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:44:17.269Z] [DEBUG] Amnezia  : sudo docker exec -i amnezia-awg mkdir -p  "$(dirname /opt/amnezia/h8cXkO7oVkE0bkDb.sh)"
[2025-12-16 15:44:17.489Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:44:17.622Z] [DEBUG] Amnezia  : ServerController::runScript finished
[2025-12-16 15:44:17.622Z] [DEBUG] Amnezia  : ServerController::Run script
[2025-12-16 15:44:17.622Z] [DEBUG] Amnezia  : sudo docker cp /tmp/MeTVwRHzuAxBA3eN.tmp amnezia-awg://opt/amnezia/h8cXkO7oVkE0bkDb.sh
[2025-12-16 15:44:17.856Z] [DEBUG] Amnezia  : SSH chanel opened
[2025-12-16 15:44:17.991Z] [DEBUG] Amnezia  : ServerController::runScript finished

There are no explicit errors in this part of the Amnezia log, but after installation finishes, the container no longer exists in docker ps -a.​

What I already checked

Docker works fine on this VPS:

docker run --rm alpine echo ok succeeds.
docker run --rm hello-world succeeds.​

Docker logging driver default is json-file:

docker info --format '{{.LoggingDriver}}'
json-file
Originally created by @nep0m on GitHub (Dec 16, 2025). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2070 When trying to install AmneziaWG on a clean KVM VPS with Ubuntu and working Docker, the installation always fails with error code 202 (ServerContainerMissingError). From the server side, the amnezia-awg container is created and started, but immediately exits and disappears from docker ps -a, so the client reports that the container is missing.​ Environment VPS type: KVM OS: Ubuntu 22.04.5 LTS (Jammy) Kernel: 5.15.0-164-generic RAM: 2 GB Disk: 20 GB Virtualization: KVM (not OpenVZ / LXC) Docker info: ``` Client: Docker Engine - Community Version: 29.1.3 Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.30.1 Path: /usr/libexec/docker/cli-plugins/docker-buildx compose: Docker Compose (Docker Inc.) Version: v5.0.0 Path: /usr/libexec/docker/cli-plugins/docker-compose Server: Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 2 Server Version: 29.1.3 Storage Driver: overlayfs driver-type: io.containerd.snapshotter.v1 Logging Driver: json-file Cgroup Driver: systemd Cgroup Version: 2 ... Firewall Backend: iptables ``` There is enough disk and RAM: `df -h` ``` Filesystem Size Used Avail Use% Mounted on tmpfs 197M 1.1M 196M 1% /run /dev/sda1 20G 4.9G 14G 26% / tmpfs 982M 0 982M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 197M 4.0K 197M 1% /run/user/0 ``` ` free -h` ``` total used free shared buff/cache available Mem: 1.9Gi 237Mi 1.0Gi 1.0Mi 665Mi 1.5Gi Swap: 0B 0B 0B ``` Network and DNS are fine (ping/curl to external sites work): `ping -c 3 google.com` ``` PING google.com(ams16s30-in-x0e.1e100.net (2a00:1450:400e:805::200e)) 56 data bytes 64 bytes from ams16s37-in-x0e.1e100.net (2a00:1450:400e:805::200e): icmp_seq=1 ttl=120 time=2.69 ms 64 bytes from ams16s30-in-x0e.1e100.net (2a00:1450:400e:805::200e): icmp_seq=2 ttl=120 time=8.84 ms 64 bytes from ams16s37-in-x0e.1e100.net (2a00:1450:400e:805::200e): icmp_seq=3 ttl=120 time=0.652 ms --- google.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 0.652/4.060/8.837/3.478 ms ``` `wget -S https://www.google.com` ``` --2025-12-16 16:11:46-- https://www.google.com/ Resolving www.google.com (www.google.com)... 2a00:1450:400e:80e::2004, 216.58.208.100 Connecting to www.google.com (www.google.com)|2a00:1450:400e:80e::2004|:443... connected. HTTP request sent, awaiting response... HTTP/1.1 200 OK ``` AmneziaVPN client: 4.8.10.0 (Windows 11 24H2 x86_64) What I did Clean KVM VPS, Ubuntu installed from provider template. Installed Docker from the official Docker repository (not docker.io), verified it works: ``` docker run --rm alpine echo ok docker run --rm hello-world ok Hello from Docker! This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker ID: https://hub.docker.com/ For more examples and ideas, visit: https://docs.docker.com/get-started/ ``` Connected this VPS in AmneziaVPN client on Windows and tried to install AmneziaWG (self‑hosted). Installation runs through all steps (Docker installation, image build, container run, docker network connect, docker cp of script). At the end, the client shows error code 202. Observed behavior on the server Right after the failed installation: ``` docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES (no amnezia-awg container) ``` `docker logs amnezia-awg` returns: `Error response from daemon: No such container: amnezia-awg` Amnezia log: ``` [2025-12-16 15:43:39.580Z] [DEBUG] Amnezia : >>>> 16777251 Event is caught by StartPage [2025-12-16 15:43:45.900Z] [DEBUG] Amnezia : >>>> 16777249 Event is caught by StartPage [2025-12-16 15:43:55.282Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:43:55.282Z] [DEBUG] Amnezia : uname -a [2025-12-16 15:43:55.924Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:43:56.021Z] [DEBUG] Amnezia : ServerController::runScript finished [2025-12-16 15:43:58.803Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:43:58.803Z] [DEBUG] Amnezia : sudo docker ps --format '{{.Names}} {{.Ports}}' [2025-12-16 15:43:58.997Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:43:59.124Z] [DEBUG] Amnezia : ServerController::runScript finished [2025-12-16 15:43:59.124Z] [DEBUG] Amnezia : ServerController::setupContainer amnezia-awg [2025-12-16 15:43:59.124Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:43:59.126Z] [DEBUG] Amnezia : if which apt-get > /dev/null 2>&1; then pm=$(which apt-get); opt="--version";\ elif which dnf > /dev/null 2>&1; then pm=$(which dnf); opt="--version";\ elif which yum > /dev/null 2>&1; then pm=$(which yum); opt="--version";\ elif which zypper > /dev/null 2>&1; then pm=$(which zypper); opt="--version";\ elif which pacman > /dev/null 2>&1; then pm=$(which pacman); opt="--version";\ else pm="uname"; opt="-a";\ fi;\ CUR_USER=$(whoami 2>/dev/null || echo $HOME | sed 's/.*\///');\ echo $LANG | grep -qE '^(en_US.UTF-8|C.UTF-8|C)$' || export LC_ALL=C;\ sudo -K;\ cd ~;\ if [ "$CUR_USER" = "root" ] || ( groups "$CUR_USER" | grep -E '\<(sudo|wheel)\>' ); then \ sudo -nu $CUR_USER $pm $opt > /dev/null; sudo -n $pm $opt > /dev/null;\ fi [2025-12-16 15:43:59.378Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:43:59.569Z] [DEBUG] Amnezia : ServerController::runScript finished [2025-12-16 15:43:59.570Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:43:59.570Z] [DEBUG] Amnezia : if which apt-get > /dev/null 2>&1; then LOCK_CMD="fuser"; LOCK_FILE="/var/lib/dpkg/lock-frontend";\ elif which dnf > /dev/null 2>&1; then LOCK_CMD="fuser"; LOCK_FILE="/var/cache/dnf/* /var/run/dnf/* /var/lib/dnf/* /var/lib/rpm/*";\ elif which yum > /dev/null 2>&1; then LOCK_CMD="cat"; LOCK_FILE="/var/run/yum.pid";\ elif which zypper > /dev/null 2>&1; then LOCK_CMD="cat"; LOCK_FILE="/var/run/zypp.pid";\ elif which pacman > /dev/null 2>&1; then LOCK_CMD="fuser"; LOCK_FILE="/var/lib/pacman/db.lck";\ else echo "Packet manager not found"; echo "Internal error"; exit 1; fi;\ if command -v $LOCK_CMD > /dev/null 2>&1; then sudo $LOCK_CMD $LOCK_FILE 2>/dev/null; else echo "$LOCK_CMD not installed"; fi [2025-12-16 15:43:59.785Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:43:59.916Z] [DEBUG] Amnezia : ServerController::runScript finished [2025-12-16 15:43:59.916Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:43:59.916Z] [DEBUG] Amnezia : if which apt-get > /dev/null 2>&1; then pm=$(which apt-get); silent_inst="-yq install"; check_pkgs="-yq update"; docker_pkg="docker.io"; dist="debian";\ elif which dnf > /dev/null 2>&1; then pm=$(which dnf); silent_inst="-yq install"; check_pkgs="-yq check-update"; docker_pkg="docker"; dist="fedora";\ elif which yum > /dev/null 2>&1; then pm=$(which yum); silent_inst="-y -q install"; check_pkgs="-y -q check-update"; docker_pkg="docker"; dist="centos";\ elif which zypper > /dev/null 2>&1; then pm=$(which zypper); silent_inst="-nq install"; check_pkgs="-nq refresh"; docker_pkg="docker"; dist="opensuse";\ elif which pacman > /dev/null 2>&1; then pm=$(which pacman); silent_inst="-S --noconfirm --noprogressbar --quiet"; check_pkgs="-Sup"; docker_pkg="docker"; dist="archlinux";\ else echo "Packet manager not found"; exit 1; fi;\ echo "Dist: $dist, Packet manager: $pm, Install command: $silent_inst, Check pkgs command: $check_pkgs, Docker pkg: $docker_pkg";\ if [ "$dist" = "debian" ]; then export DEBIAN_FRONTEND=noninteractive; fi;\ if ! command -v sudo > /dev/null 2>&1; then $pm $check_pkgs; $pm $silent_inst sudo; fi;\ if ! command -v fuser > /dev/null 2>&1; then sudo $pm $check_pkgs; sudo $pm $silent_inst psmisc; fi;\ if ! command -v lsof > /dev/null 2>&1; then sudo $pm $check_pkgs; sudo $pm $silent_inst lsof; fi;\ if ! command -v docker > /dev/null 2>&1; then \ sudo $pm $check_pkgs; sudo $pm $silent_inst $docker_pkg;\ sleep 5; sudo systemctl enable --now docker; sleep 5;\ fi;\ if [ "$(cat /sys/module/apparmor/parameters/enabled 2>/dev/null)" = "Y" ]; then \ if ! command -v apparmor_parser > /dev/null 2>&1; then sudo $pm $check_pkgs; sudo $pm $silent_inst apparmor; fi;\ fi;\ if [ "$(systemctl is-active docker)" != "active" ]; then \ sudo $pm $check_pkgs; sudo $pm $silent_inst $docker_pkg;\ sleep 5; sudo systemctl start docker; sleep 5;\ fi;\ if ! command -v sudo > /dev/null 2>&1; then echo "Failed to install sudo, command not found"; exit 1; fi;\ docker --version [2025-12-16 15:44:00.178Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:44:00.434Z] [DEBUG] Amnezia : ServerController::runScript finished [2025-12-16 15:44:00.434Z] [DEBUG] Amnezia : ServerController::installDockerWorker Dist: debian, Packet manager: /usr/bin/apt-get, Install command: -yq install, Check pkgs command: -yq update, Docker pkg: docker.io Docker version 29.1.3, build f52814d [2025-12-16 15:44:00.434Z] [DEBUG] Amnezia : ServerController::setupContainer installDockerWorker finished [2025-12-16 15:44:00.434Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:44:00.435Z] [DEBUG] Amnezia : which lsof > /dev/null 2>&1 || true && sudo lsof -i -P -n 2>/dev/null | grep -E ':36861 ' | grep -i udp [2025-12-16 15:44:00.620Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:44:00.759Z] [DEBUG] Amnezia : ServerController::runScript finished [2025-12-16 15:44:00.759Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:44:00.759Z] [DEBUG] Amnezia : which lsof > /dev/null 2>&1 || true && sudo lsof -i -P -n 2>/dev/null | grep -E ':36861 ' | grep -i udp [2025-12-16 15:44:01.010Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:44:01.175Z] [DEBUG] Amnezia : ServerController::runScript finished [2025-12-16 15:44:01.176Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:44:01.176Z] [DEBUG] Amnezia : CUR_USER=$(whoami 2>/dev/null || echo $HOME | sed 's/.*\///');\ sudo mkdir -p /opt/amnezia/amnezia-awg;\ sudo chown $CUR_USER /opt/amnezia/amnezia-awg;\ if ! sudo docker network ls | grep -q amnezia-dns-net; then sudo docker network create \ --driver bridge \ --subnet=172.29.172.0/24 \ --opt com.docker.network.bridge.name=amn0 \ amnezia-dns-net;\ fi [2025-12-16 15:44:01.432Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:44:01.603Z] [DEBUG] Amnezia : ServerController::runScript finished [2025-12-16 15:44:01.603Z] [DEBUG] Amnezia : ServerController::setupContainer prepareHostWorker finished [2025-12-16 15:44:01.603Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:44:01.603Z] [DEBUG] Amnezia : sudo docker stop amnezia-awg;\ sudo docker rm -fv amnezia-awg;\ sudo docker rmi amnezia-awg [2025-12-16 15:44:01.853Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:44:02.061Z] [DEBUG] Amnezia : ServerController::runScript finished [2025-12-16 15:44:02.062Z] [DEBUG] Amnezia : ServerController::setupContainer removeContainer finished [2025-12-16 15:44:02.062Z] [DEBUG] Amnezia : buildContainerWorker start [2025-12-16 15:44:02.062Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:44:02.062Z] [DEBUG] Amnezia : sudo rm /opt/amnezia/amnezia-awg/Dockerfile [2025-12-16 15:44:02.193Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:44:02.411Z] [DEBUG] Amnezia : ServerController::runScript finished [2025-12-16 15:44:03.191Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:44:03.191Z] [DEBUG] Amnezia : sudo docker build --no-cache --pull -t amnezia-awg /opt/amnezia/amnezia-awg [2025-12-16 15:44:03.427Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:44:14.729Z] [DEBUG] Amnezia : ServerController::runScript finished [2025-12-16 15:44:14.729Z] [DEBUG] Amnezia : ServerController::setupContainer buildContainerWorker finished [2025-12-16 15:44:14.729Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:44:14.729Z] [DEBUG] Amnezia : sudo docker run -d \ --log-driver none \ --restart always \ --privileged \ --cap-add=NET_ADMIN \ --cap-add=SYS_MODULE \ -p 36861:36861/udp \ -v /lib/modules:/lib/modules \ --sysctl="net.ipv4.conf.all.src_valid_mark=1" \ --name amnezia-awg \ amnezia-awg [2025-12-16 15:44:14.908Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:44:15.946Z] [DEBUG] Amnezia : sudo docker network connect amnezia-dns-net amnezia-awg [2025-12-16 15:44:16.329Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:44:16.463Z] [DEBUG] Amnezia : ServerController::runScript finished [2025-12-16 15:44:16.463Z] [DEBUG] Amnezia : ServerController::setupContainer runContainerWorker finished [2025-12-16 15:44:17.269Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:44:17.269Z] [DEBUG] Amnezia : sudo docker exec -i amnezia-awg mkdir -p "$(dirname /opt/amnezia/h8cXkO7oVkE0bkDb.sh)" [2025-12-16 15:44:17.489Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:44:17.622Z] [DEBUG] Amnezia : ServerController::runScript finished [2025-12-16 15:44:17.622Z] [DEBUG] Amnezia : ServerController::Run script [2025-12-16 15:44:17.622Z] [DEBUG] Amnezia : sudo docker cp /tmp/MeTVwRHzuAxBA3eN.tmp amnezia-awg://opt/amnezia/h8cXkO7oVkE0bkDb.sh [2025-12-16 15:44:17.856Z] [DEBUG] Amnezia : SSH chanel opened [2025-12-16 15:44:17.991Z] [DEBUG] Amnezia : ServerController::runScript finished ``` There are no explicit errors in this part of the Amnezia log, but after installation finishes, the container no longer exists in docker ps -a.​ What I already checked Docker works fine on this VPS: ``` docker run --rm alpine echo ok succeeds. docker run --rm hello-world succeeds.​ ``` Docker logging driver default is json-file: ``` docker info --format '{{.LoggingDriver}}' json-file ```
Author
Owner

@vlefr5v1l commented on GitHub (Mar 23, 2026):

Same problem

<!-- gh-comment-id:4113484798 --> @vlefr5v1l commented on GitHub (Mar 23, 2026): Same problem
Author
Owner

@indapublic commented on GitHub (Apr 8, 2026):

root@vds:~# journalctl -u docker --since "15 min ago" --no-pager

Apr 08 08:12:59 vds dockerd[739]: time="2026-04-08T08:12:59.088262725Z" level=info msg="image pulled" digest="sha256:3f21aa955b936a02a36842b9e619ba3270d12a36a9adb0f5a5d47e99e3628bf9" remote="docker.io/amneziavpn/amneziawg-go:latest"
Apr 08 08:12:59 vds dockerd[739]: time="2026-04-08T08:12:59.259208913Z" level=info msg="image created" imageID="sha256:028a6f23bc90726c5fa2758eea3ba069a55b6764552b61b933ceca41254ebb64" tag="moby-dangling@sha256:028a6f23bc90726c5fa2758eea3ba069a55b6764552b61b933ceca41254ebb64"
Apr 08 08:12:59 vds dockerd[739]: time="2026-04-08T08:12:59.481681134Z" level=info msg="sbJoin: gwep4 ''->'9853bf3836e1', gwep6 ''->''" eid=9853bf3836e1 ep=tender_lehmann net=bridge nid=b3f29468613e

disable ipv6 doesn't help

<!-- gh-comment-id:4204874871 --> @indapublic commented on GitHub (Apr 8, 2026): root@vds:~# journalctl -u docker --since "15 min ago" --no-pager Apr 08 08:12:59 vds dockerd[739]: time="2026-04-08T08:12:59.088262725Z" level=info msg="image pulled" digest="sha256:3f21aa955b936a02a36842b9e619ba3270d12a36a9adb0f5a5d47e99e3628bf9" remote="docker.io/amneziavpn/amneziawg-go:latest" Apr 08 08:12:59 vds dockerd[739]: time="2026-04-08T08:12:59.259208913Z" level=info msg="image created" imageID="sha256:028a6f23bc90726c5fa2758eea3ba069a55b6764552b61b933ceca41254ebb64" tag="moby-dangling@sha256:028a6f23bc90726c5fa2758eea3ba069a55b6764552b61b933ceca41254ebb64" Apr 08 08:12:59 vds dockerd[739]: time="2026-04-08T08:12:59.481681134Z" level=info msg="sbJoin: gwep4 ''->'9853bf3836e1', gwep6 ''->''" eid=9853bf3836e1 ep=tender_lehmann net=bridge nid=b3f29468613e disable ipv6 doesn't help
Author
Owner

@nep0m commented on GitHub (Apr 8, 2026):

In my case problem was because 443 port being blocked by hoster

<!-- gh-comment-id:4205104366 --> @nep0m commented on GitHub (Apr 8, 2026): In my case problem was because 443 port being blocked by hoster
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#912
No description provided.