Comments (4)
for linuxkit we'd like to use Alpine's mkfs.ext4
, ie:
docker run --rm -ti alpine:3.6 /bin/sh
and then apk add --no-cache e2fsprogs man e2fsprogs-doc
which gives you the binary as well as the man page. it seems to be incompatible in command line options to the one you used.
from opengcs.
I tried the mkfs.ext4
for Alpine. Looks like Ubuntu's mkfs.ext4
is very lenient on the order of arguments, which is why it broke for Alpine. I should have a fix for it shortly.
However, when I try doing the mount -o loop <DEVICE> <DIR>
command, I get a no space left
error and my /dev/
directory has tens of thousands of loopback device. Any idea why?
I ran something like this:
root@ubuntu:~# docker run -ti alpine:3.6 /bin/sh
/ # apk add --no-cache e2fsprogs man e2fsprogs-doc
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
(1/8) Installing libuuid (2.28.2-r2)
(2/8) Installing libblkid (2.28.2-r2)
(3/8) Installing libcom_err (1.43.4-r0)
(4/8) Installing e2fsprogs-libs (1.43.4-r0)
(5/8) Installing e2fsprogs (1.43.4-r0)
(6/8) Installing e2fsprogs-doc (1.43.4-r0)
(7/8) Installing mdocml (1.14.1-r0)
(8/8) Installing man (1.14.1-r0)
Executing busybox-1.26.2-r5.trigger
OK: 6 MiB in 19 packages
/ # dd if=/dev/zero of=/test-dev-blk bs=1M count=4
4+0 records in
4+0 records out
/ # mkfs.ext4 -O ^has_journal,^resize_inode, -N 512 -b 4096 -I 256 -F /test-dev-blk
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: done
Creating filesystem with 1024 4k blocks and 512 inodes
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
/ # mount -o loop /test-dev-blk /mnt
mount: can't setup loop device: No space left on device
/ # ls -1 /dev/ | grep loop | wc -l
251759
from opengcs.
#49 Should fix the mkfs.ext4
part atleast
from opengcs.
@gupta-ak Thanks. #49 indeed fixed the mkfs.ext4
issue I saw with Alpine's version of the tool
from opengcs.
Related Issues (20)
- execProcess should handle v2 external process
- V2 should support hot add/remove of NIC
- V2 exec process should consider UVMId
- Shutdown of UVM should send response to HCS
- bridge should make sure kernel version is 4.14.23 or greater
- In stress test, failed to get SCSI device name HOT 2
- [feature request] add version parameter HOT 2
- Error on run container with transparent network HOT 2
- Unspecified Error (0X80004005) and Failed to connect NIC
- init does too little and too much
- File ULIMITs HOT 1
- Intermittent DNS failures when running Alpine containers in user-defined docker-compose network
- vet error: set declared but not used HOT 1
- some "docker exec" commands fail with a cryptic error HOT 3
- LCOW: Docker Volumes don't support some fs operations that bind mounts support - CreateFile access denied HOT 2
- json.Unmarshal is incorrectly used
- json.Unmarshal is incorrectly used
- I would like to ask for some wrong answers HOT 4
- OT: Where to find tools/information about Hyper-V root on Linux
- Who owns C:\Program Files\Linux Containers? HOT 3
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 opengcs.