简体   繁体   中英

Docker error:“ command not found”

i use docker on windows. I'm just following some tuto for learn. When i use " FROM" or "apt-get" he say "command not found" i just try to "FROM ubuntu". Maybe cause of boot2docker ?

Thx a lot, much love.

You need to clone the repository https://github.com/docker-library/hello-world . It is mentioned in the documentation link which you are referring to start using docker for windows. Then you should use the Dockerfile in the repository and replace the COPY with ADD as mentioned in the commit message with the file on the repository link. That should enable you to use the base image. I hope it makes sense to you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM