Can't run Curl command inside my Docker Container

后端 未结 6 1294
谎友^
谎友^ 2020-12-13 08:01

I created a docker container from my OS X VM Docker host. I created it using the run command and created the container based off the ubuntu:xenial image off do

6条回答
  •  天命终不由人
    2020-12-13 09:00

    Ran into this same issue while using the CURL command inside my Dockerfile. As Gilles pointed out, we have to install curl first. These are the commands to be added in the 'Dockerfile'.

    FROM ubuntu:16.04
    
    # Install prerequisites
    RUN apt-get update && apt-get install -y \
    curl
    CMD /bin/bash
    

提交回复
热议问题