从容器中拉取并转换为systemd-nspawn的操作系统树。
项目描述
您可以拉取Docker容器
pip install ostree
ostree pull python:3.7-alpine ./alpine
并使用systemd-nspawn运行它
sudo systemd-nspawn --directory ./alpine python
Spawning container alpine on /home/denis/alpine.
Press ^] three times within 1s to kill container.
Timezone UTC does not exist in container, not updating container timezone.
Python 3.7.0 (default, Aug 22 2018, 20:39:59)
[GCC 6.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
警告
这是一个alpha版本的软件。预期会有一些问题。
支持的注册表
以下注册表目前被支持
- Docker(仅公共注册表)
- Google Container Registry(公共,私有与服务帐户和json密钥文件)
要求
- POSIX
- Python 3.6+
运行测试
pip install -e '.[test]'
py.test ostree
约定
Ostree尽可能遵循PEP8。要验证它,请运行
pip install -e '.[test]'
flake8 ostree
Ostree使用语义版本化。
许可协议
Ostree在MIT许可下发布
变更日志
0.1.1 (2018-09-07)
- 添加了OSTREE_AUTH、OSTREE_CACHE和OSTREE_PROTOCOL环境变量。[href]
0.1.0 (2018-09-06)
-
添加了对Google Container Registry的支持。[href]
-
实现了缓存清除。[href]
-
如果没有给出协议,则显示错误。[href]
-
将缓存路径更改为非root用户的
~/.cache/seantis/ostree
。[href]
0.0.0 (2018-08-24)
- 初始发布。[href]
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。
源分发
ostree-0.1.1.tar.gz (8.4 kB 查看散列值)
构建分发
ostree-0.1.1-py3-none-any.whl (10.4 kB 查看散列值)
关闭
ostree-0.1.1.tar.gz 的散列值
算法 | 散列摘要 | |
---|---|---|
SHA256 | 8179a0acb69aacd7871e60924cfddba47b1a7a9bedad38501d3db6df44cc85c8 |
|
MD5 | 3c674453fd13fd12c1d9b5ae37c4516d |
|
BLAKE2b-256 | 63a68b9d0208c619b81bf61668fbcbc90d4480abe1edb64dac42265c5283422d |
关闭
ostree-0.1.1-py3-none-any.whl 的散列值
算法 | 散列摘要 | |
---|---|---|
SHA256 | e643026c3c1391e3198d972ae4accdbe914c726d4fde6ed368780f864778e6f1 |
|
MD5 | 6ecae0368841bdfe1d8ce51a5682a9cb |
|
BLAKE2b-256 | d2e1ad45c3be64d795981b113064ad97f0c580b1ed48fcd3572b12d1f4f515e7 |