Z
Zerops2w ago
Puub

When building my Docker image and starting the container, I get an error (Application deploy failed)

This is my zerops.yml:
zerops:
- setup: docker
run:
base: docker@26.1
prepareCommands:
- docker build -t frps .
# start docker, --network=host needed
start: docker run --network=host frps

# what ports docker exposes
# and whether it supports http traffic
ports:
- port: 7777
httpSupport: false
zerops:
- setup: docker
run:
base: docker@26.1
prepareCommands:
- docker build -t frps .
# start docker, --network=host needed
start: docker run --network=host frps

# what ports docker exposes
# and whether it supports http traffic
ports:
- port: 7777
httpSupport: false
Support code is: F9knny6kTyaCWzY0T61HgQ
5 Replies
Puub
PuubOP2w ago
I cannot see the Docker build/deploy logs. Is that intentional? When building the image locally, it builds/starts fine
Jan Saidl
Jan Saidl2w ago
Hi @Puub , I checked the logs around your Docker build and deleted the non-functional prepare image. Could you please try again? The regular Docker VM build works, so unless it’s something specific.
Puub
PuubOP2w ago
Thanks for checking, but I still get an error:
BUILD ARTEFACTS READY TO DEPLOY


ERR Application deploy failed
ERR last command has finished with error, identifier for communication with our support: GkleeYLZS3GTT9ZCqBGlrw
BUILD ARTEFACTS READY TO DEPLOY


ERR Application deploy failed
ERR last command has finished with error, identifier for communication with our support: GkleeYLZS3GTT9ZCqBGlrw
It's not really necessary to build an Docker image, Alpine would also work fine (when the docs are ready) Maybe it has something to do with referenced files in the Dockerfile that are not available when building the image?
Jan Saidl
Jan Saidl2w ago
Hi @Puub , I've figured it out. Please set the minimum disk size on your stack to 5GB. Unfortunately, the VM can't shrink the disk. We have a bug in the GUI that allows setting a smaller disk. After that, your deployment will succeed. The second thing is that if you need a Dockerfile in run.prepare, you need to add:
build:
addToRunPrepare:
- ./Dockerfile
build:
addToRunPrepare:
- ./Dockerfile
Aleš
Aleš2w ago
also native Zerops container running either alpine or linux (if technology not directly supported by preconfigured services) is vastly preferred over Docker, let us know if you want to help figure out how to run anything without Docker

Did you find this page helpful?