In documentazione ufficiale possiamo vedere:Come costruire l'immagine finestra mobile dal repository github
# docker build github.com/creack/docker-firefox
funziona bene per me. docker-firefox
è un repository e ha Dockerfile
nella directory principale.
allora voglio buid immagine Redis e versione esatta 2.8.10:
# docker build github.com/docker-library/redis/tree/99c172e82ed81af441e13dd48dda2729e19493bc/2.8.10
2014/11/05 16:20:32 Error trying to use git: exit status 128 (Initialized empty Git repository in /tmp/docker-build-git067001920/.git/
error: The requested URL returned error: 403 while accessing https://github.com/docker-library/redis/tree/99c172e82ed81af441e13dd48dda2729e19493bc/2.8.10/info/refs
fatal: HTTP request failed
)
ho ottenuto errore di cui sopra. Qual è il formato corretto con l'immagine della finestra mobile creata dai repository github?
Infatti 'finestra mobile costruire https: // raw.githubusercontent.com/finestra mobile-libreria/Redis/master/lavora 2.8.10/Dockerfile', ma non come [l'esempio ufficiale] (http://docs.docker.com/v1.1/reference/commandline/cli/#build). Grazie per la tua risposta. – seanlook