Can we build a docker image using .tar or zip archive -


can build docker image using tarball or zip archive includes dockerfile inside that. need build image archives using docker api.

is there reference or resource , have search 3o minutes couldn't find anything.

help me, please! in advance!

do mean, tar.gz containing dockerfile , build image of it? if download archive github release, example: https://github.com/nginxinc/docker-nginx/releases?

yes can:

#!/bin/bash wget "https://github.com/nginxinc/docker-nginx/archive/1.13.2.tar.gz" tar xvf 1.13.2.tar.gz --strip-components 3 docker-nginx-1.13.2/stable/alpine/dockerfile && docker build . -t mynginx 

Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -