I'm trying to build my ark server on my v-server. But I have problems to start my docker-compose container. Here is the YAML file:
version: '3'
services:
ark-server:
image: 'turzam/ark:latest'
container_name: 'ark-server'
restart: always
ports:
- '7778:7778'
- '7778:7778/udp'
- '27015:27015'
- '27015:27015/udp'
- '32330:32330'
volumes:
- ./data:/ark
environment:
SESSIONNAME: "Raphis's Server"
SERVERMAP: 'TheCenter'
SERVERPASSWORD: 'pass'
ADMINPASSWORD: 'password'
TZ: 'Europe/Berlin'
When I start it up with docker-compose up -d
I get the following error message:
Starting ark-server ... error
ERROR: for ark-server Cannot start service ark-server: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/c919d8e4e2d51b934d561a928cfd55e0f7af07a2a3a0ac3d52b3c5ba3cea14e6/log.json: no such file or directory): runc did not terminate sucessfully: unknown
ERROR: for ark-server Cannot start service ark-server: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/c919d8e4e2d51b934d561a928cfd55e0f7af07a2a3a0ac3d52b3c5ba3cea14e6/log.json: no such file or directory): runc did not terminate sucessfully: unknown
ERROR: Encountered errors while bringing up the project.
So how can I fix it?
Your yaml syntax is wrong
you can use this website to verify your yaml syntax : http://www.yamllint.com/
So your Yaml file will be like this :
version: '3'
services:
ark-server:
image: turzam/ark:latest
container_name: 'ark-server'
restart: always
ports:
- '7778:7778'
- '7778:7778/udp'
- '27015:27015'
- '27015:27015/udp'
- '32330:32330'
volumes:
- ./data:/ark
environment:
SESSIONNAME: "Raphis's Server"
SERVERMAP: 'TheCenter'
SERVERPASSWORD: 'pass'
ADMINPASSWORD: 'password'
TZ: 'Europe/Berlin'
Related
After installing Yacht on docker compose with this docker-compose.yml
---
version: "3"
services:
yacht:
container_name: yacht
restart: unless-stopped
ports:
- 8000:8000
volumes:
- yacht:/config
- /var/run/docker.sock:/var/run/docker.sock
image: selfhostedpro/yacht
volumes:
yacht:
yacht starts normally with docker-compose up -d but the dashboard doesn't load anything, on every page i get this popup error:
popup error
I tried the following things:
Restarting Yacht
Manually creating the directory but gave an error "invalid argument"
rebooting the PC
Do somebody know how to fix?
The docker-compose file looks like this:
version: '2'
services:
portainer_agent:
image: portainer/agent:latest
container_name: portainer_agent
restart: unless-stopped
ports:
- 9001:9001
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
environment:
AGENT_CLUSTER_ADDR: tasks.agent
and it's giving this error:
Creating portainer_agent ... error
ERROR: for portainer_agent Cannot start service portainer_agent: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "./agent": stat ./agent: no such file or directory: unknown
I tried to find if anyone had this error on the internet and I couldn't find it anywhere.
so here i am i just created an account here.
i really don't know where to start, this error is from inside the container.
I created machine:
docker-machine create -v virtualbox docker-local
Switched to machine:
eval ($docker-machine env docker-local)
Now, Im trying to run docker-compose on it to serve my apps on this machine.
This are my files:
docker-compose.yml
version: "3"
services:
db:
image: mysql:5.7
container_name: db
ports:
- '3306:3306'
environment:
MYSQL_DATABASE: 'test'
MYSQL_ROOT_PASSWORD: 'asdasd123'
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
app:
build:
context: .
dockerfile: ./dockerfiles/python/Dockerfile
container_name: app
volumes:
- ./app:/app
- static:/app/static
- media:/app/media
command: >
./wait-for-it.sh db:3306 --timeout=30 --strict -- ./run.sh
expose:
- "8000"
depends_on:
- db
nginx:
container_name: nginx
restart: always
build:
context: .
dockerfile: ./dockerfiles/nginx/Dockerfile
volumes:
- ./nginx:/etc/nginx/conf.d
- ./nginx_logs:/var/log/nginx
- ./nginx_html:/html
- ./ssl_cert:/etc/nginx/conf.d/certs/
- static:/static
- media:/media
ports:
- "1337:80"
- "443:443"
depends_on:
- app
volumes:
static:
media:
If i lauch this docker-compose.yml using docker-compose up everything works fine in local pc, however on virtualbox machine - error accured:
Creating db ... done
Creating app ... error
ERROR: for app Cannot start service app: OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \"./wait-for-it.sh\": stat ./wait-for-it.sh: no such file or directory": unknown
ERROR: for app Cannot start service app: OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \"./wait-for-it.sh\": stat ./wait-for-it.sh: no such file or directory": unknown
ERROR: Encountered errors while bringing up the project.
Why is this happening only on docker-machine? Why it has no access to wait-for-it.sh here?
I am trying to pull image of whatsapp core and run them in docker in my linux machine, I am providing code of docker-compose.yml
**
for biz_wacore_1 Cannot start service wacore: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/opt/whatsapp/bin/wait_on_postgres.sh\": stat /opt/whatsapp/bin/wait_on_postgres.sh: no such file or directory
** is error I am having
Tried using docker-compose up with sudo command
code in my docker-compose.yml
services:
wacore:
image: docker.whatsapp.biz/coreapp:v2.19.4
command: ["/opt/whatsapp/bin/wait_on_postgres.sh", "/opt/whatsapp/bin/launch_within_docker.sh"]
volumes:
- whatsappMedia:/usr/local/wamedia
env_file:
- db.env
environment:
# This is the version of the docker templates being used to run WhatsApp Business API
WA_RUNNING_ENV_VERSION: v2.2.3
ORCHESTRATION: DOCKER-COMPOSE
depends_on:
- "db"
network_mode: bridge
links:
- db
waweb:
image: docker.whatsapp.biz/web:v2.19.4
command: ["/opt/whatsapp/bin/wait_on_postgres.sh", "/opt/whatsapp/bin/launch_within_docker.sh"]
ports:
- "9090:443"
volumes:
- whatsappMedia:/usr/local/wamedia
env_file:
- db.env
environment:
WACORE_HOSTNAME: wacore
# This is the version of the docker templates being used to run WhatsApp Business API
WA_RUNNING_ENV_VERSION: v2.2.3
ORCHESTRATION: DOCKER-COMPOSE
depends_on:
- "db"
- "wacore"
links:
- db
- wacore
network_mode: bridge
I have the following docker-compose file:
version: '3'
services:
frontend:
image: node:9
working_dir: /dist
command: PORT=8000 node /static/index.js
volumes:
- ./dist:/static
ports:
- "8000:8000"
environment:
NODE_ENV: ${NODE_ENV}
But when I run it, I get this error:
Cannot start service frontend: OCI runtime create failed:
container_linux.go:296: starting container process caused "exec:
\"PORT=8000\": executable file not found in $PATH": unknown
You don't need the command to publish the port or make accessible by the host.
Only clause ports is enough.
ports:
- 8000:8000
note the double quote.
If you need a environment variable, can use the clause environment
frontend:
environment:
- PORT=8000