You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. Thanks for your great job.
I wanna try running model repo with cog.
but I met a error below:
Building Docker image from environment in cog.yaml as style-your-hair-model...
[+] Building 6.4s (11/25)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.24kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> resolve image config for docker.io/docker/dockerfile:1.2 2.5s
=> CACHED docker-image://docker.io/docker/dockerfile:1.2@sha256:e2a8561e419ab1ba6b2fe6cbdf49fd92b95912df1cf7d313c3e2230a333fdbcc 0.0s
=> [internal] load metadata for docker.io/nvidia/cuda:10.2-cudnn8-devel-ubuntu18.04 1.9s
=> [stage-0 1/19] FROM docker.io/nvidia/cuda:10.2-cudnn8-devel-ubuntu18.04@sha256:54eff7aa01217a1fb039cf5dbfa925a4bce2073b1742074c84dd83cf7af4ab11 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 49.17kB 0.0s
=> CACHED [stage-0 2/19] RUN rm -f /etc/apt/sources.list.d/cuda.list && rm -f /etc/apt/sources.list.d/nvidia-ml.list && apt-key del 7fa2af80 0.0s
=> CACHED [stage-0 3/19] RUN --mount=type=cache,target=/var/cache/apt set -eux; apt-get update -qq; apt-get install -qqy --no-install-recommends curl; rm -rf /var/lib/apt/lists/*; TIN 0.0s
=> CACHED [stage-0 4/19] RUN --mount=type=cache,target=/var/cache/apt apt-get update -qq && apt-get install -qqy --no-install-recommends make build-essential libssl-dev zlib1g-dev 0.0s
=> ERROR [stage-0 5/19] RUN curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && git clone https://github.com/momo-lab/pyenv-ins 1.7s
------
> [stage-0 5/19] RUN curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && git clone https://github.com/momo-lab/pyenv-install-latest.git "$(pyenv root)"/plugins/pyenv-install-latest && pyenv install-latest "3.8" && pyenv global $(pyenv install-latest --print "3.8") && pip install "wheel<1":
#10 0.328 curl: (6) Could not resolve host: raw.githubusercontent.com
#10 0.332 /bin/sh: 1: pyenv: not found
#10 0.339 Cloning into '/plugins/pyenv-install-latest'...
#10 1.708 /bin/sh: 1: pyenv: not found
------
executor failed running [/bin/sh -c curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && git clone https://github.com/momo-lab/pyenv-install-latest.git "$(pyenv root)"/plugins/pyenv-install-latest && pyenv install-latest "3.8" && pyenv global $(pyenv install-latest --print "3.8") && pip install "wheel<1"]: exit code: 127
ⅹ Failed to build Docker image: exit status 1
and I test my proxy with a test DockerFile,
FROM ubuntu
RUN apt update
RUN apt install -y git
RUN apt install -y curl
RUN cd ~
# RUN git clone https://github.com/momo-lab/pyenv-install
RUN echo $(curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer) > ~/test.text
and the result is fine because I had set a proxy setting in ~/.docker/config.json
[+] Building 0.1s (10/10) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 309B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:latest 0.0s
=> [1/6] FROM docker.io/library/ubuntu 0.0s
=> CACHED [2/6] RUN apt update 0.0s
=> CACHED [3/6] RUN apt install -y git 0.0s
=> CACHED [4/6] RUN apt install -y curl 0.0s
=> CACHED [5/6] RUN cd ~ 0.0s
=> CACHED [6/6] RUN echo $(curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer) > ~/test.text 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:a6c4607e62d22ee21dcdb4bd1a8b9711cf758c24ea4157ae1c090edbd4bdbc70 0.0s
=> => naming to docker.io/library/proxy_test:v3
how to set proxy in cog.yaml or cog command or API call code when building an image?
and another question, if I run a container instance built by cog, will it access the internet with my proxy also?
The text was updated successfully, but these errors were encountered:
I dive into the code, and just found call os/exec.Command("docker, args...") to use docker to process remaining work.
I have no idea why have a difference between I run docker build in my wsl2 shell and I use cog to build an image. the code which cog build docker image
Hello. Thanks for your great job.
I wanna try running model repo with cog.
but I met a error below:
and I test my proxy with a test DockerFile,
and the result is fine because I had set a proxy setting in ~/.docker/config.json
how to set proxy in cog.yaml or cog command or API call code when building an image?
and another question, if I run a container instance built by cog, will it access the internet with my proxy also?
The text was updated successfully, but these errors were encountered: