xptsp / pivpn-docker

Run PiVPN in a Container!
MIT License
8 stars 5 forks source link

Missing docker image from dockerhub? #5

Open XayOn opened 3 years ago

XayOn commented 3 years ago

docker pull xptsp/pivpn Using default tag: latest Error response from daemon: pull access denied for xptsp/pivpn, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

XayOn commented 3 years ago

If this is due to DH's recent changes, maybe using github pipelines and publishing it to github directly?

conana commented 3 years ago

@XayOn I found this project yesterday and hit the same issue. As a workaround, I have had success meanwhile building locally from one commit back 41b25f601d38aff26f554b47c2b79daf6ef293f8 and then docker build . -t conan/pivpn:armv7hf. Head didn't build.

jan-brinkmann commented 3 years ago

@conana, can you please state more clearly how your workaround actually works?

  1. clone git repository
  2. check out commit 41b25f6 on docker machine
  3. execute docker build . -t conan/pivpn:armv7hf
  4. start container with docker cli or docker-compose

Are these the steps to take?

I receive the following output on my raspberry pi 2:

docker build . -t conan/pivpn:armv7hf
Sending build context to Docker daemon  8.077MB
Step 1/21 : FROM phusion/baseimage:master
master: Pulling from phusion/baseimage
no matching manifest for linux/arm/v7 in the manifest list entries
conana commented 3 years ago

Steps were:

  1. git clone https://github.com/xptsp/pivpn-docker.git
  2. cd pivpn-docker
  3. git checkout 41b25f601d38aff26f554b47c2b79daf6ef293f8
  4. docker build . -t conan/pivpn:armv7hf

This builds successfully on osx with docker desktop, giving the image:

➜  pivpn-docker git:(41b25f6) docker images
REPOSITORY              TAG       IMAGE ID       CREATED         SIZE
conan/pivpn             armv7hf   8df74154a419   3 minutes ago   398MB

The secret sauce may have been running docker run --rm --privileged multiarch/qemu-user-static:register --reset some time earlier but I'm not sure whether that's required when building on a pi itself.

jan-brinkmann commented 3 years ago

@conana, thank you for going into details. However, this does not work for me.

2mf commented 2 years ago

I have made multi arch image -> https://github.com/2mf/pivpn-docker --> https://hub.docker.com/r/dm2mf/pivpn