Closed gamedevsam closed 6 months ago
Note: If I don't set the builder to null, I get this error:
-----> Building app-dev from Dockerfile
#0 building with "default" instance using docker driver
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 172B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/dokku/app-dev:cmv9j995t0ren7c1vdmg
#3 ERROR: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
------
> [internal] load metadata for docker.io/dokku/app-dev:cmv9j995t0ren7c1vdmg:
------
Dockerfile:1
--------------------
1 | >>> FROM dokku/app-dev:cmv9j995t0ren7c1vdmg
2 | LABEL com.dokku.docker-image-labeler/alternate-tags=[\"dokku/app-dev:cmv9j995t0ren7c1vdmg\"]
3 |
--------------------
ERROR: failed to solve: dokku/app-dev:cmv9j995t0ren7c1vdmg: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Do you have a sample app I can use to verify this behavior?
Hey do you mind following up with me on Discord? It will be easier for me to just give you access to my repo and let you SSH into my server to see what's going on.
Yeah I can do that - currently somewhere without internet access (mobile only) and tethering doesn't quite work. Will follow up tomorrow.
@josegonzalez poke, would love to see some progress on this issue, also Merry Christmas and happy new years!
Hey guys, did you find any solution? I am currently facing the same issue and can not update applications deployed using git:from-image.
Yes! I was able to make it work by removing --label=com.dokku.app-name=app-dev
from the docker image build
command, so happy I got it to work!
Hi, I ran into this as well, when trying to update my Ghost app. I ended up just doing a docker image pull ghost
and dokku ps:rebuild myghostapp.com
and that worked.
If the image tag doesn't change, that won't trigger a rebuild (as documented).
Description of problem
I'm attempting to deploy a locally built docker image via SSH into Dokku. Up to this point I've been using git push and letting Dokku build the docker image, but my builds are quite large and it's eating into my disk space on my remove box. To solve that I leaned into using
dokku git:from-image
to load a pre-built image that I generate on my local machine.I've gotten to the point where the build & deployment succeeds, but for some reason dokku seems to just re-deploy the existing version instead of the new image specified in
git:from-image
. Here's the commands I'm running in a nutshell:Steps to reproduce
/version
endpoint.dokku report $APP_NAME
Additional information
Logs of successful deployment via SSH +
dokku git:from-image
:Output of failing commands after running: dokku trace:off
No response
Output of failing commands after running: dokku trace:on
No response