Comments (6)
Same as #1, For docker, this means working with https://github.com/docker/distribution -- implementing https://github.com/docker/distribution/blob/master/doc/spec/api.md
from container-demos.
To simplify this demo, here is what I am thinking:
- First, get the IPFS-in-a-container working. This requires starting it with Docker 1.5.0 and starting it with additional privs: moby/moby#9448 (comment)
docker run -ti --cap-add SYS_ADMIN --device /dev/fuse peter/dev:sshfs /bin/bash
- Use a Docker Registry (https://www.vultr.com/docs/setup-your-own-docker-registry-on-coreos) that pulls a volume from the IPFS container.
I think this will work, will just have to try and see.
from container-demos.
See: #4
from container-demos.
So --privileged
worked. That example of using sshfs
works. However, ipfs
doesn't. When I attempt to run it, what appears to be blocking it is apparmor. Inside the container, this is what dmesg reports:
[15411407.627213] type=1400 audit(1427433682.487:81): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="docker-default" name="/ipfs/" pid=12399 comm="fusermount" fstype="fuse" srcname="/dev/fuse" flags="rw, nosuid, nodev"
[15411407.628119] type=1400 audit(1427433682.487:82): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="docker-default" name="/ipns/" pid=12400 comm="fusermount" fstype="fuse" srcname="/dev/fuse" flags="rw, nosuid, nodev"
Ubuntu's docker-default apparmor profile contains:
mount fstype=fuse.*,
and it doesn't appear to be matching.
I don't know about apparmor, but I did try adding
mount fstype=fuse,
but still get the same error.
from container-demos.
Using --volumes-from
in a different container to link to a FUSE-mount inside a contaner may not be possible as it is now: https://groups.google.com/forum/#!msg/docker-dev/_8bAG561VAI/ofDLtK8dxigJ
cryptix@freenode suggested checking if it is the same with sshfs
from container-demos.
Tried it with sshfs
still does not work. Limitation of Docker and all.
I think for this demo, I'll use docker exec
to demonstrate being able to grab data from /ipfs
. However, this would be more interesting if the HTTP API gets exposed.
For #2 though, would have to have ipfs
run on the host, and then bind-mount the container to ipfs
and ipns
to bring up a registry, will see what happens.
from container-demos.
Related Issues (20)
- Deploying container images with IPFS in 5 seconds. HOT 1
- Push 12-factor app with figure + ipfs
- Push static web assets as CDN
- Boot from bare metal with iPXE
- Boot VMWare .vmx machine in 5 seconds
- Readmes link to old go-ipfs github location
- Demos 3 and 4 don't work HOT 4
- Ideas from discussion HOT 12
- docker registries HOT 5
- Move to ipfs-shipyard? HOT 2
- Start a container in 20 machines in 5 seconds.
- WIP: Feat/backend toggle switch for desktop settings
- WIP: Feat/backend toggle switch for desktop settings
- Writable containers with IPFS in 5 seconds. HOT 2
- Boot a VM with PXE in 5 seconds. HOT 3
- Boot a VM with a (good, old-fashioned) ISO in 5 seconds. HOT 1
- Download a VM in 5 seconds. HOT 4
- Dataset Containers HOT 7
- Zero Install custom environment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from container-demos.