Back to front pageView on Hacker News (opens in a new tab)Show HN: Bocker – Docker implemented in 100 lines of bash (opens in a new tab)github.com662 pointsby p8952 (on Hacker News)11 years agogithub.com (opens in a new tab)GitHub - p8952/bocker: Docker implemented in around 100 lines of bashDocker implemented in around 100 lines of bash. Contribute to p8952/bocker development by creating an account on GitHub.Comments (87) 26 threadsShow all commentsShowing thread 14 of 26[-]spydum11 years ago1 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)?[-]inopinatus11 years ago1 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.spydum11 years ago#Ahhh, no.. I was looking at line 57 and somehow missed the actual call to $2 on 59. Clear as a bell now
Show HN: Bocker – Docker implemented in 100 lines of bash (opens in a new tab)github.com662 pointsby p8952 (on Hacker News)11 years ago
spydum11 years ago1 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)?
inopinatus11 years ago1 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.
spydum11 years ago#Ahhh, no.. I was looking at line 57 and somehow missed the actual call to $2 on 59. Clear as a bell now
Comments (87) 26 threads
Show all comments
Showing thread 14 of 26
Is something watching for .cmd? Is this some behavior of util-linux (for which, my few seconds couldn't find solid documentation on)?
The run command itself is executed next, inside of ip netns exec.