Skip to content

clr-info/ji-marina

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ji-marina

The marina is a simple web server to publish the piscineri3/* Docker images from the Docker hub.

Example

To retrieve an image from this proxy, one can use the docker load command:

$> curl -X GET  http://piscine.in2p3.fr:8080/docker-images/piscineri3/go-base:latest | docker load
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  490M    0  490M    0     0  25.8M      0 --:--:--  0:00:18 --:--:-- 12.4M
Loaded image: piscineri3/go-base:latest

Using marina-pull

A simple Go command is also available:

$> go get github.com/clr-info/ji-marina/cmd/marina-pull
$> marina-pull piscineri3/go-base:latest
2016/09/19 16:21:57 pulling "piscineri3/go-base"...
Loaded image: piscineri3/go-base:latest
2016/09/19 16:22:13 pulling "piscineri3/go-base"... [done] (16.304998995s)

Note that by default marina-pull will try to pull from piscine.in2p3.fr. You may change this behaviour by passing -addr=example.com or -addr=192.168.0.2 as an argument:

$> marina-pull -addr=192.168.0.2 piscineri3/go-base
2016/09/20 12:41:10 pulling "piscineri3/go-base"...
Loaded image: piscineri3/go-base:latest
2016/09/20 12:41:26 pulling "piscineri3/go-base"... [done] (16.304998995s)