eisengrind / docker-altv-server

The unofficial alt:V server Docker image.
https://hub.docker.com/r/eisengrind/altv-server
MIT License
21 stars 18 forks source link

No such file or directory /root/entrypoint.sh #28

Closed ZackaryH8 closed 2 years ago

ZackaryH8 commented 2 years ago

When I run the following compose, I get this in the console. any ideas why?

Compose

---
version: '3.8'
services:
    altv:
        image: eisengrind/altv-server:js-dev
        container_name: altv
        environment:
            - ALTV_SERVER_NAME=Test Server
            - ALTV_SERVER_PORT=7788
            - ALTV_SERVER_PLAYERS=10
            - ALTV_SERVER_PASSWORD=MyPass
            - ALTV_SERVER_ANNOUNCE=false
            - ALTV_SERVER_LANGUAGE=en
            - ALTV_SERVER_DESCRIPTION=testing server
            - ALTV_SERVER_MODULES=js-module
            - ALTV_SERVER_RESOURCES=boilerplate
            - ALTV_SERVER_DEBUG=true
        ports:
            - '7788:7788/tcp'
            - '7788:7788/udp'
        volumes:
            - /home/ubuntu/rebelRoleplay:/opt/altv
        privileged: true
        restart: unless-stopped

Console

/root/entrypoint.sh: line 149: ./altv-server: No such file or directory
/root/entrypoint.sh: line 149: ./altv-server: No such file or directory
/root/entrypoint.sh: line 149: ./altv-server: No such file or directory
pixlcrashr commented 2 years ago

Your volume replaces all files in /opt/altv. Either specify all single files individually or specify a subfolder to /opt/altv, such as /opt/altv/vol.

pixlcrashr commented 2 years ago

Also note: If it is technically not necessary, do not run any container in privileged mode, bc. a container will then be able to access your system's devices (see https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities for reference).

ZackaryH8 commented 2 years ago

Yeah this is me just being a complete noob, thanks!

pixlcrashr commented 2 years ago

Yeah this is me just being a complete noob, thanks!

You're welcome.