docker-amend-0.1.2
توضیحات
Amend Docker images by running a command in a separate layer.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | docker-amend-0.1.2 |
| نام | docker-amend |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alexander Pushkov |
| ایمیل نویسنده | alexander@notpushk.in |
| آدرس صفحه اصلی | https://gitlab.com/notpushkin/docker-amend |
| آدرس اینترنتی | https://pypi.org/project/docker-amend/ |
| مجوز | ISC |
# docker-amend
Amend Docker images by running a command in a temporary container.
```console
$ pipx install docker-amend # (plain `pip` works too)
$ docker-amend [OPTIONS] IMAGE[:VERSION] COMMAND...
```
## Description
docker-amend lets you modify an IMAGE by running COMMAND inside a temporary container.
You can use it to add dependencies to your project without rebuilding the whole image
from ground.
This is basically `docker run` and `docker commit` in one go, but easier to use.
## Options
* `-t, --tag NAME[:VERSION]`: Use a different name/tag for the resulting image.
* `-v, --volume SOURCE[:TARGET[:MODE]]`: Bind mount a volume.
* `--no-cwd-volume`: Do not mount current working directory as a volume. [default: False]
* `--install-completion`: Install completion for the current shell.
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
* `--help`: Show this message and exit.
## Example
Let's say you're making a Python app:
```console
$ docker build -t my-image .
... (some development goes on, then:)
$ docker-amend my-image poetry add requests
$ docker run my-image poetry show
requests 2.23.0 Python HTTP for Humans.
$ grep requests pyproject.toml
requests = ^2.23.0
```
نیازمندی
| مقدار | نام |
|---|---|
| >=4.2.0,<5.0.0 | docker |
| >=0.3.2,<0.4.0 | typer |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl docker-amend-0.1.2:
pip install docker-amend-0.1.2.whl
نصب پکیج tar.gz docker-amend-0.1.2:
pip install docker-amend-0.1.2.tar.gz