Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加 image build 命令 #26

Closed
Gscienty opened this issue May 15, 2019 · 1 comment
Closed

添加 image build 命令 #26

Gscienty opened this issue May 15, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Gscienty
Copy link
Owner

Gscienty commented May 15, 2019

https://docs.docker.com/engine/api/v1.37/#operation/ImageBuild

@Gscienty Gscienty added the enhancement New feature or request label May 15, 2019
@Gscienty Gscienty self-assigned this May 15, 2019
@Gscienty
Copy link
Owner Author

docker build 过程 需要向 docker daemon 提交文件夹(tar)。并通过dockerfile参数指定tar中Dockfile文件所在位置。

例如: curl --unix-socket /var/run/docker.sock -XPOST -H"Content-Type: application/x-tar" 'http://localhost/build?t=test:latest&dockerfile=./humha/Dockerfile' --data-binary @humha.tar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant