Lurker News

Comments (87) 26 threads

Earlier comments
jenscow#
That script is the best description of Docker I've read.
spydum1 reply#
I'm missing something, what actually "executes" the command here echo "$2" > "$btrfs_path/$uuid/$uuid.cmd"

Is something watching for .cmd? Is this some behavior of util-linux (for which, my few seconds couldn't find solid documentation on)?

inopinatus1 reply#
If my dry read of the code is correct, that line is for the "bocker ps" routine to be able to print the command later.

The run command itself is executed next, inside of ip netns exec.

spydum#
Ahhh, no.. I was looking at line 57 and somehow missed the actual call to $2 on 59. Clear as a bell now
e12e#
Nice. As I just started playing with zfsonlinux, I'm tempted to "port" this from btrfs to zfs... Should allow for migrating "images"/snapshots with zfs send...
kzisme1 reply#
As an entry level developer - how does someone go about re-writing "x" in 100 lines of "x"?

Is there a certain process that goes into developing something like this, and why is this a popular thing to do? (writing an existing software in lesser lines)

MoOmer#
1) Knowledge of the space is good, but can be learned while implementing. You'll need to know the language pretty well, in order to keep the line count down.

2) It's fun

Load more comments