Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Revise content of CONTAINERS module

未关闭
#361 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
jupyter-notebook

调研方向

检查 Brainhack Containers 模块和链接的“Containers are not magic.ipynb”笔记本,从报告中显示的 wget、tar 和 chroot 命令开始。在受支持的平台上复现文档化的步骤,并修改该模块,使其平台要求、限制和预期结果对于 macOS 和 Windows 用户都清晰明确。

由索引模型根据 Issue 内容生成。

描述

maintainence

Module to maintain

Website: Brainhack Containers module
Code: Jupyter Notebook

Work to be done

I took the module this year and the code provided in the jupyter notebook is not working if you don't have a linux distribution. I'm working on a:
Darwin MacBook-Pro-3.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:28:58 PST 2023; root:xnu-10002.81.5~7/RELEASE_X86_64 x86_64

And when I run the code I get:


(base) thomasdagonneau@MacBook-Pro-3 ~ % wget bit.ly/fish-container -O fish.tar mkdir -p container-root && (cd container-root && tar xf ../fish.tar) 
 
WARNING: combining -O with -r or -p will mean that all downloaded content
will be placed in the single file you specified.

Prepended http:// to 'bit.ly/fish-container'
--2025-06-04 10:12:46--  http://bit.ly/fish-container
Resolving bit.ly (bit.ly)... 67.199.248.10, 67.199.248.11
Connecting to bit.ly (bit.ly)|67.199.248.10|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://gist.github.com/jvns/1e8b2dcc2c9afac04acc4701112e3512/raw/5ef7f88cd089a70605b301cdd43f388d728f6817/fish.tar [following]
--2025-06-04 10:12:46--  https://gist.github.com/jvns/1e8b2dcc2c9afac04acc4701112e3512/raw/5ef7f88cd089a70605b301cdd43f388d728f6817/fish.tar
Resolving gist.github.com (gist.github.com)... 140.82.113.3
Connecting to gist.github.com (gist.github.com)|140.82.113.3|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://gist.githubusercontent.com/jvns/1e8b2dcc2c9afac04acc4701112e3512/raw/5ef7f88cd089a70605b301cdd43f388d728f6817/fish.tar [following]
--2025-06-04 10:12:46--  https://gist.githubusercontent.com/jvns/1e8b2dcc2c9afac04acc4701112e3512/raw/5ef7f88cd089a70605b301cdd43f388d728f6817/fish.tar
Resolving gist.githubusercontent.com (gist.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.111.133, ...
Connecting to gist.githubusercontent.com (gist.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16999936 (16M) [application/octet-stream]
Saving to: ‘fish.tar’

fish.tar                                           100%[================================================================================================================>]  16,21M  15,0MB/s    in 1,1s    

2025-06-04 10:12:47 (15,0 MB/s) - ‘fish.tar’ saved [16999936/16999936]

Prepended http:// to 'mkdir'
--2025-06-04 10:12:47--  http://mkdir/
Resolving mkdir (mkdir)... failed: nodename nor servname provided, or not known.
wget: unable to resolve host address ‘mkdir’
Prepended http:// to 'container-root'
--2025-06-04 10:12:47--  http://container-root/
Resolving container-root (container-root)... failed: nodename nor servname provided, or not known.
wget: unable to resolve host address ‘container-root’
FINISHED --2025-06-04 10:12:47--
Total wall clock time: 1,9s
Downloaded: 1 files, 16M in 1,1s (15,0 MB/s)


(base) thomasdagonneau@MacBook-Pro-3 ~ % mkdir -p container-root && (cd container-root && tar xf ../fish.tar)                  
usr/share/terminfo/l/lft-pc850: Can't create 'usr/share/terminfo/l/lft-pc850'
usr/share/terminfo/n/ncr260vt300wpp: Can't create 'usr/share/terminfo/n/ncr260vt300wpp'
usr/share/terminfo/n/ncrvt100wpp: Can't create 'usr/share/terminfo/n/ncrvt100wpp'
usr/share/terminfo/p/p12: Can't create 'usr/share/terminfo/p/p12'
usr/share/terminfo/p/p12-m: Can't create 'usr/share/terminfo/p/p12-m'
usr/share/terminfo/p/p12-m-w: Can't create 'usr/share/terminfo/p/p12-m-w'
usr/share/terminfo/p/p12-w: Can't create 'usr/share/terminfo/p/p12-w'
usr/share/terminfo/p/p14: Can't create 'usr/share/terminfo/p/p14'
usr/share/terminfo/p/p14-m: Can't create 'usr/share/terminfo/p/p14-m'
usr/share/terminfo/p/p14-m-w: Can't create 'usr/share/terminfo/p/p14-m-w'
usr/share/terminfo/p/p14-w: Can't create 'usr/share/terminfo/p/p14-w'
usr/share/terminfo/p/p4: Can't create 'usr/share/terminfo/p/p4'
usr/share/terminfo/p/p5: Can't create 'usr/share/terminfo/p/p5'
usr/share/terminfo/p/p7: Can't create 'usr/share/terminfo/p/p7'
usr/share/terminfo/p/p8: Can't create 'usr/share/terminfo/p/p8'
usr/share/terminfo/p/p8-w: Can't create 'usr/share/terminfo/p/p8-w'
usr/share/terminfo/p/p9: Can't create 'usr/share/terminfo/p/p9'
usr/share/terminfo/p/p9-8: Can't create 'usr/share/terminfo/p/p9-8'
usr/share/terminfo/p/p9-8-w: Can't create 'usr/share/terminfo/p/p9-8-w'
usr/share/terminfo/p/p9-w: Can't create 'usr/share/terminfo/p/p9-w'
usr/share/terminfo/p/prism12: Hard-link target 'usr/share/terminfo/P/P12' does not exist.
usr/share/terminfo/p/prism12-m: Hard-link target 'usr/share/terminfo/P/P12-M' does not exist.
usr/share/terminfo/p/prism12-m-w: Hard-link target 'usr/share/terminfo/P/P12-M-W' does not exist.
usr/share/terminfo/p/prism12-w: Hard-link target 'usr/share/terminfo/P/P12-W' does not exist.
usr/share/terminfo/p/prism14: Hard-link target 'usr/share/terminfo/P/P14' does not exist.
usr/share/terminfo/p/prism14-m: Hard-link target 'usr/share/terminfo/P/P14-M' does not exist.
usr/share/terminfo/p/prism14-m-w: Hard-link target 'usr/share/terminfo/P/P14-M-W' does not exist.
usr/share/terminfo/p/prism14-w: Hard-link target 'usr/share/terminfo/P/P14-W' does not exist.
usr/share/terminfo/p/prism4: Hard-link target 'usr/share/terminfo/P/P4' does not exist.
usr/share/terminfo/p/prism5: Hard-link target 'usr/share/terminfo/P/P5' does not exist.
usr/share/terminfo/p/prism7: Hard-link target 'usr/share/terminfo/P/P7' does not exist.
usr/share/terminfo/p/prism8: Hard-link target 'usr/share/terminfo/P/P8' does not exist.
usr/share/terminfo/p/prism8-w: Hard-link target 'usr/share/terminfo/P/P8-W' does not exist.
usr/share/terminfo/p/prism9: Hard-link target 'usr/share/terminfo/P/P9' does not exist.
usr/share/terminfo/p/prism9-8: Hard-link target 'usr/share/terminfo/P/P9-8' does not exist.
usr/share/terminfo/p/prism9-8-w: Hard-link target 'usr/share/terminfo/P/P9-8-W' does not exist.
usr/share/terminfo/p/prism9-w: Hard-link target 'usr/share/terminfo/P/P9-W' does not exist.
tar: Error exit delayed from previous errors.

(base) thomasdagonneau@MacBook-Pro-3 ~ % sudo chroot $PWD/container-root /bin/sh -c "/bin/mount -t proc proc /proc && /bin/zsh"
Password:
chroot: /bin/sh: Exec format error

I think it doesn't work because I'm not with a linux user but instead a x86_64 mac user.
I couldn't test it but I think the issue would probably apply on a windows OS.

主要语言
Jupyter Notebook
星标
42
派生
185
PR 合并指标
30 天内没有已合并 PR

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

school-brainhack/school-brainhack.github.io 的其他 Issue

查看 school-brainhack/school-brainhack.github.io 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。