vektra / container Goto Github PK
View Code? Open in Web Editor NEWThe guts of docker put into a unix program
The guts of docker put into a unix program
I guess container should create that directory structure the first time it boots:
vagrant@precise64:/vagrant$ ./container -h
panic: open /var/lib/ar-container/repositories: no such file or directory
goroutine 1 [running]:
main.main()
/vagrant/main.go:18 +0xf7
goroutine 2 [syscall]:
goroutine 4 [runnable]:
text/template/parse.lexText(0xc2000e1100, 0x79a460)
/usr/local/go/src/pkg/text/template/parse/lex.go:228 +0x361
text/template/parse.(*lexer).run(0xc2000e1100)
/usr/local/go/src/pkg/text/template/parse/lex.go:198 +0x3e
created by text/template/parse.lex
/usr/local/go/src/pkg/text/template/parse/lex.go:191 +0x111
goroutine 5 [runnable]:
os/signal.loop()
/usr/local/go/src/pkg/os/signal/signal_unix.go:19
created by os/signal.init·1
/usr/local/go/src/pkg/os/signal/signal_unix.go:27 +0x2f
Hi guys,
I was trying to import a new base image, but I'm afraid I'm completely lost. I see that the import
command expects a directory with a repositories
inside. But I don't know what to put there. For reference this is what I do with docker:
mkdir -p $target
sudo debootstrap --variant=buildd --include=iputils-ping,telnet,vim-tiny,git,curl precise $target $mirror
sudo sh -c "echo 'deb $mirror precise main restricted universe multiverse' > $target/etc/apt/sources.list"
cd $target
img=$(sudo tar -c . | docker import -)
docker tag $img gh-base $time
docker tag $img gh-base latest
Do I need to generate the repositories and layers info by hand?
I would really appreciate if you could explain me how to import an image.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.