我在“docker run“

我在“docker run“

我正在尝试运行这个应用程序;https://github.com/gioargyr/docker-kr-suite 但是,当我运行“docker run deneme1”(deneme1 指的是我的存储库名称)时,它正在等待一些命令或其他东西。但是当我尝试给出“ls”或“pwd”之类的命令时,什么也没发生。感谢您的回答。

sudo docker run deneme1
# This file controls: which hosts are allowed to connect, how clients
# host       DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
# hostssl    DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
# hostnossl  DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
# socket, "host" is either a plain or SSL-encrypted TCP/IP socket,
# "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a
# ADDRESS specifies the set of hosts the record matches.  It can be a
# host name, or it is made up of an IP address and a CIDR mask that is
# specifies the number of significant bits in the mask.  A host name
# that starts with a dot (.) matches a suffix of the actual host name.
# columns to specify the set of hosts.  Instead of a CIDR-address, you
# can write "samehost" to match any of the server's own IP addresses,
# "host" records.  In that case you will also need to make PostgreSQL
host    all             all             127.0.0.1/32            md5
host    all             all             ::1/128                 md5
# Allow replication connections from localhost, by a user with the
#host    replication     postgres        127.0.0.1/32            md5
#host    replication     postgres        ::1/128                 md5
host     all     all     0.0.0.0/0   md5
#listen_addresses = 'localhost'     # what IP address(es) to listen on;
listen_addresses='*'
2019-04-08 17:56:49.732 UTC [13] LOG:  database system was shut down at 2019-04-08 17:08:00 UTC
2019-04-08 17:56:50.022 UTC [13] LOG:  MultiXact member wraparound protections are now enabled
2019-04-08 17:56:50.025 UTC [17] LOG:  autovacuum launcher started
2019-04-08 17:56:50.026 UTC [12] LOG:  database system is ready to accept connections

答案1

尝试这样做:

docker search ubuntu
docker pull ubuntu
docker run ubuntu
docker images

这就是您使用 docker 的方式。

要创建存储库,请登录 Docker Hub,单击“存储库”,然后单击“创建存储库”: dockerhub

创建仓库

创建新存储库时,您可以选择将其放在您的 Docker ID 命名空间中,或您属于“所有者”团队的任何组织的命名空间中。存储库名称在该命名空间中必须是唯一的,长度可以是 2 到 255 个字符,并且只能包含小写字母、数字或 - 和 _。

100个字符的“简短描述”用于搜索结果,而“完整描述”可以作为仓库的Readme,并可以使用Markdown添加简单的格式。

点击“创建”按钮后,您需要将镜像推送到基于 Hub 的存储库。

将 Docker 容器映像推送到 Docker Hub

要将存储库推送到 Docker Hub,您必须使用您的 Docker Hub 用户名以及通过 Web 上的 Docker Hub 创建的存储库名称来命名您的本地映像。

您可以通过向存储库添加特定的 : 来添加多个映像(例如 docs/base:testing)。如果未指定,则标签默认为最新。

您可以在构建本地镜像时使用 docker build -t /[:] 来命名本地镜像,也可以通过重新标记现有本地镜像 docker tag /[:] 来命名,或者使用 docker commit /[:] 来提交更改。

现在您可以将此存储库推送到其名称或标签指定的注册表。

docker push <hub-user>/<repo-name>:<tag>

相关内容