在构建Docker后,我找不到Docker的图像 [英] I can't find my Docker image after building it

查看:176
本文介绍了在构建Docker后,我找不到Docker的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Docker的新手,所以请允许我描述我所做的步骤。我在OS X上使用Docker(不是Docker工具箱)。我使用以下命令构建了Dockerfile中的映像。

sudo docker build -t myImage。

I'm new to Docker, so please allow me to describe the steps that I did. I'm using Docker (not Docker toolbox) on OS X. I built the image from Dockerfile using the following command
sudo docker build -t myImage .

Docker确认建筑成功了。

成功建成7240e .....

Docker confirmed that building was successful.
Successfully built 7240e.....

然而,我找不到任何地方的图像。我查看了这个问题,但答案是Docker工具箱,而且我没有一个文件夹 / Users /< username> /。docker

However, I can't find the image anywhere. I looked at this question, but the answer is for Docker toolbox, and I don't have a folder /Users/<username>/.docker as suggested by the accepted answer.

推荐答案

您可以通过以下命令查看您的码头图像:

You would be able to see your docker images by the below command:

docker images

并检查哪个所有容器都在码头运行:

And to check which all containers are running in docker:

docker ps -a

这篇关于在构建Docker后,我找不到Docker的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆