简体   繁体   中英

How to pull private docker image from docker to new machine

I have a new machine with a docker engine. I want to pull down a private docker image from docker.com.

I can pull down any public docker image, no problem.

klas@dockerengine:~$ docker pull nginx
latest: Pulling from nginx

39bb80489af7: Pull complete
df2a0347c9d0: Pull complete
[...]

But my private image fails:

klas@dockerengine:~$ docker pull mellbourn/privaterepo
Pulling repository mellbourn/privaterepo
FATA[0002] Error: image mellbourn/privaterepo:latest not found

What should I do?

It may have to do with SSH, but I know very little about SSH.

您需要运行docker login才能访问私有存储库。

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