Error starting Docker container: /boot/newvm.sh not found
Hello!
Error starting Docker container:
/bin/sh: 1: /boot/newvm.sh: not found
Tried on Linux distributions Debian-12 and Centos-8.
I installed docker according to the documentation:
https://docs.docker.com/engine/install/debian/
https://docs.docker.com/engine/install/centos/
Multiotp version 5.9.9.1 (similar error in versions 5.9.8.3 and 5.9.7.1)
I build the image from the Dockerfile:
docker build -t multiotp/multiotp-open-source:latest .
The docker-image was build without errors.
Check status image:
#docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
multiotp/multiotp-open-source latest d3c7e416572e 2 hours ago 982MB
I created a shell script named ~/multiotp_docker.sh (see below):
#!/bin/bash
volume="/docker/multiotp"
mkdir -p $volume
docker run --name multiotp \
-v $volume/data:/etc/multiotp \
-v $volume/freeradius/config:/etc/freeradius \
-v $volume/multiotp/log:/var/log/multiotp \
-v $volume/freeradius/log:/var/log/freeradius \
-p 8080:80 \
-p 8443:443 \
-p 1812:1812/udp \
-p 1813:1813/udp \
-d multiotp/multiotp-open-source
OK. Now run (from "root" account) this bash-script:
chmod +x ~/multiotp_docker.sh && ~/multiotp_docker.sh
Check status container:
# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3d1db2e0684b multiotp/multiotp-open-source "/bin/sh -c '/boot/n…" 42 hours ago Exited (127) 42 hours ago multiotp
Check log status of container:
#docker logs multiotp
/bin/sh: 1: /boot/newvm.sh: not found
Thank you for your help.
Best regards,
Serge