求教一个 docker 里 pip install pip的问题

From Alpine Linux
Alpine makes a great docker container, because it is so small and optimized to be run in RAM.
It might also might make a good controller for several docker containers with enough RAM.
I haven't tested this yet
Docker's setup is easy to use from command line.
Commands can be run from an interactive shell, or through a configuration file called a "Dockerfile".
has excellent walk-throughs on how to run, pull, setup a container, commit an image, and create a configuration file.
is a freemium setup, where the first private repository is free.
Run apk add docker to install Docker on Alpine Linux.
The Docker package is in the 'Community' repository, so if the apk add fails with unsatisfiable constraints, you need to edit the /etc/apk/repositories file to add (or uncomment) a line like:
To start the Docker daemon at boot, run:
rc-update add docker boot
Then to start the Docker daemon manually, run:
service docker start
Note: On older version of Alpine Linux with older version of docker you'll also need to disable some kernel security flags in order to build images:
sysctl -w kernel.grsecurity.chroot_deny_chmod=0
sysctl -w kernel.grsecurity.chroot_deny_mknod=0
For more information, have a look at the .
Anyway, this weakening of security is not necessary to do with Alpine 3.4.x and Docker 1.12 as of August 2016 anymore.
To install docker-compose, first install pip:
apk add py-pip
Then install docker-compose, run:
pip install docker-compose
The best documentation for how to use Docker and create containers is at the main docker site.
Adding anything more to it here would be redundant.
if you create an account
you can browse through other user's images and learn from the syntax in contributor's dockerfiles.
Official Docker image files are denoted by a blue ribon on the website.自动化运维--编程--python(2)
1. pip简介
&&&&&& pip是python的一个软件安装工具,方便python 模块的安装。
&&&&&& 以模块docker-registry为例。
安装模块: &&
&&&& pip install docker-registry
查看安装包时安装的文件:
&&&& pip show --files docker-registry
查看哪些包的更新:
&&&&&&&& pip show --files docker-registry
更新软件:
&&&&&&&& pip install --upgrade docker-registry
卸载软件:
&&&&&&&& pip unintsall docker-registry
2. 安装 pip软件包
&&&&& 官网下载pip文件,解压。
&&&&& 进入解压之后的目录,执行python setup.py install 安装pip。
&&&& 安装pip时提示setup.py中使用setuptools中的模块,但是电脑中并没有安装setuptools软件包,所以我们需要先下载并安装 setuptools!然后重新安装pip即可。
3. 安装setuptools软件包
& wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
& python ez_setup.py --user
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:16281次
排名:千里之外
原创:77篇
转载:22篇
(3)(11)(15)(5)(1)(2)(2)(9)(32)(20)(3)python - Install pip in docker - Stack Overflow
to customize your list.
Join the Stack Overflow Community
Stack Overflow is a community of 6.6 million programmers, just like you, helping each other.
J it only takes a minute:
I'm not able to install pip in Docker.
Here's my Dockerfile:
FROM ubuntu:14.04
# Install dependencies
RUN apt-get update -y
RUN apt-get install -y git curl apache2 php5 libapache2-mod-php5 php5-mcrypt php5-mysql python3.4 python-pip
When building, I get:
Sending build context to Docker daemon 109.6 kB
Step 1 : FROM ubuntu:14.04
---& b549a9959a66
Step 2 : RUN apt-get update -y
---& Using cache
Step 3 : RUN apt-get install -y git curl apache2 php5 libapache2-mod-php5 php5-mcrypt php5-mysql python3.4 python-pip
---& Running in eb1
Reading package lists...
Building dependency tree...
Reading state information...
python3.4 is already the newest version.
The following extra packages will be installed:
apache2-bin apache2-data binutils build-essential ca-certificates cpp
cpp-4.8 dpkg-dev fakeroot g++ g++-4.8 gcc gcc-4.8 git-man krb5-locales
libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libasan0
libasn1-8-heimdal libatomic1 libc-dev-bin libc6-dev libcloog-isl4 libcurl3
libcurl3-gnutls libdpkg-perl libedit2 liberror-perl libfakeroot
libfile-fcntllock-perl libgcc-4.8-dev libgmp10 libgomp1 libgssapi-krb5-2
libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
libheimntlm0-heimdal libhx509-5-heimdal libidn11 libisl10 libitm1
libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0
libldap-2.4-2 libmcrypt4 libmpc3 libmpfr4 libmysqlclient18 libpython-stdlib
libpython2.7-minimal libpython2.7-stdlib libquadmath0 libroken18-heimdal
librtmp0 libsasl2-2 libsasl2-modules libsasl2-modules-db libstdc++-4.8-dev
libtimedate-perl libtsan0 libwind0-heimdal libx11-6 libx11-data libxau6
libxcb1 libxdmcp6 libxext6 libxml2 libxmuu1 linux-libc-dev lsof make
manpages manpages-dev mysql-common openssh-client openssl patch php5-cli
php5-common php5-json php5-readline psmisc python python-chardet
python-chardet-whl python-colorama python-colorama-whl python-distlib
python-distlib-whl python-html5lib python-html5lib-whl python-minimal
python-pip-whl python-pkg-resources python-requests python-requests-whl
python-setuptools python-setuptools-whl python-six python-six-whl
python-urllib3 python-urllib3-whl python-wheel python2.7 python2.7-minimal
python3-pkg-resources rsync sgml-base ssl-cert xauth xml-core xz-utils
Suggested packages:
www-browser apache2-doc apache2-suexec-pristine apache2-suexec-custom ufw
apache2-utils binutils-doc cpp-doc gcc-4.8-locales debian-keyring
g++-multilib g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg gcc-multilib
autoconf automake1.9 libtool flex bison gdb gcc-doc gcc-4.8-multilib
libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan0-dbg
libtsan0-dbg libquadmath0-dbg gettext-base git-daemon-run
git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch
git-bzr git-cvs git-mediawiki git-svn php-pear glibc-doc krb5-doc krb5-user
libmcrypt-dev mcrypt libsasl2-modules-otp libsasl2-modules-ldap
libsasl2-modules-sql libsasl2-modules-gssapi-mit
libsasl2-modules-gssapi-heimdal libstdc++-4.8-doc make-doc man-browser
ssh-askpass libpam-ssh keychain monkeysphere ed diffutils-doc
php5-user-cache python-doc python-tk python-genshi python-lxml
python-distribute python-distribute-doc python2.7-doc binfmt-support
python3-setuptools openssh-server sgml-base-doc openssl-blacklist debhelper
Recommended packages:
ssh-client python-dev-all
The following NEW packages will be installed:
apache2 apache2-bin apache2-data binutils build-essential ca-certificates
cpp cpp-4.8 curl dpkg-dev fakeroot g++ g++-4.8 gcc gcc-4.8 git git-man
krb5-locales libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libapache2-mod-php5 libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libasan0 libasn1-8-heimdal
libatomic1 libc-dev-bin libc6-dev libcloog-isl4 libcurl3 libcurl3-gnutls
libdpkg-perl libedit2 liberror-perl libfakeroot libfile-fcntllock-perl
libgcc-4.8-dev libgmp10 libgomp1 libgssapi-krb5-2 libgssapi3-heimdal
libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal
libhx509-5-heimdal libidn11 libisl10 libitm1 libk5crypto3 libkeyutils1
libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2 libmcrypt4
libmpc3 libmpfr4 libmysqlclient18 libpython-stdlib libpython2.7-minimal
libpython2.7-stdlib libquadmath0 libroken18-heimdal librtmp0 libsasl2-2
libsasl2-modules libsasl2-modules-db libstdc++-4.8-dev libtimedate-perl
libtsan0 libwind0-heimdal libx11-6 libx11-data libxau6 libxcb1 libxdmcp6
libxext6 libxml2 libxmuu1 linux-libc-dev lsof make manpages manpages-dev
mysql-common openssh-client openssl patch php5 php5-cli php5-common
php5-json php5-mcrypt php5-mysql php5-readline psmisc python python-chardet
python-chardet-whl python-colorama python-colorama-whl python-distlib
python-distlib-whl python-html5lib python-html5lib-whl python-minimal
python-pip python-pip-whl python-pkg-resources python-requests
python-requests-whl python-setuptools python-setuptools-whl python-six
python-six-whl python-urllib3 python-urllib3-whl python-wheel python2.7
python2.7-minimal python3-pkg-resources rsync sgml-base ssl-cert xauth
xml-core xz-utils
0 upgraded, 130 newly installed, 0 to remove and 4 not upgraded.
Need to get 61.9 MB of archives.
After this operation, 213 MB of additional disk space will be used.
Err /ubuntu/ trusty-updates/main libroken18-heimdal amd64 1.6~git+dfsg-1ubuntu1.1
Could not resolve ''
Err /ubuntu/ trusty-updates/main libasn1-8-heimdal amd64 1.6~git+dfsg-1ubuntu1.1
Could not resolve ''
Err /ubuntu/ trusty-security/main python2.7 amd64 2.7.6-8ubuntu0.2
Could not resolve ''
E: Failed to fetch /ubuntu/pool/main/h/heimdal/libroken18-heimdal_1.6~git+dfsg-1ubuntu1.1_amd64.deb
Could not resolve ''
E: Failed to fetch /ubuntu/pool/main/h/heimdal/libasn1-8-heimdal_1.6~git+dfsg-1ubuntu1.1_amd64.deb
Could not resolve ''
E: Failed to fetch /ubuntu/pool/main/k/krb5/libkrb5support0_1.12+dfsg-2ubuntu5.2_amd64.deb
Could not resolve ''
E: Failed to fetch /ubuntu/pool/main/s/ssl-cert/ssl-cert_1.0.33_all.deb
Could not resolve ''
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c apt-get install -y git curl apache2 php5 libapache2-mod-php5 php5-mcrypt php5-mysql python3.4 python-pip' returned a non-zero code: 100
Having read , I tried adding the line RUN "sh" "-c" "echo nameserver 8.8.8.8 && /etc/resolv.conf" - the error this time is:
Reading state information...
E: Unable to locate package php5-mcrypt
E: Unable to locate package python-pip
The command '/bin/sh -c apt-get install -y git curl apache2 php5 libapache2-mod-php5 php5-mcrypt php5-mysql python3.4 python-pip' returned a non-zero code: 100
What am I doing wrong? I've seen some claims that I should try a different version of Ubuntu, but switching to 13.1 didn't change anything.
While T. Arboreus's answer might fix the issues with resolving '', I think the last error you're getting says that it doesn't know about the packages php5-mcrypt and python-pip.
Nevertheless, the reduced Dockerfile of you with just these two packages worked for me (using Debian 8.4 and Docker 1.11.0), but I'm not quite sure if that could be the case because my host system is different than yours.
FROM ubuntu:14.04
# Install dependencies
RUN apt-get update && apt-get install -y \
php5-mcrypt \
python-pip
However, according to
you should think about installing the python3-pip package instead of the python-pip package when using Python 3.x.
Furthermore, to make the php5-mcrypt package installation working, you might want to add the universe repository like it's shown . I had trouble with the add-apt-repository command missing in the Ubuntu Docker image so I installed the package software-properties-common at first to make the command available.
Splitting up the statements and putting apt-get update and apt-get install into one RUN command is also recommended .
Oh and by the way, you actually don't need the -y flag at apt-get update because there is nothing that has to be confirmed automatically.
FROM ubuntu:14.04
# Install dependencies
RUN apt-get update && apt-get install -y \
software-properties-common
RUN add-apt-repository universe
RUN apt-get update && apt-get install -y \
libapache2-mod-php5 \
php5-mcrypt \
php5-mysql \
python3.4 \
python3-pip
Remark: The used versions (e.g. of Ubuntu) might be outdated in the future.
Uncomment the following line in /etc/default/docker
DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
Restart the Docker service sudo service docker restart
Delete any images which have cached the invalid DNS settings.
Build again and the problem should be solved.
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
The week's top questions and answers
Important community announcements
Questions that need answers
By subscribing, you agree to the
rev .24681
Stack Overflow works best with JavaScript enabledaaron428 的BLOG
用户名:aaron428
文章数:103
访问量:27449
注册日期:
阅读量:5863
阅读量:12276
阅读量:376671
阅读量:1069720
51CTO推荐博文
& & & &默认情况下 Docker 的守护进程启动会生成一个 socket (/var/run/docker.sock)进程通信文件,而并没有监听端口,只能在本机操作 Docker。如果想在其它地方操作 Docker 主机,就需要让 Docker 主机监听一个端口号,这样可以通过端口号就能实现远程操作。Docker 提供了 Python API Client,所以可以直接用Python直接和 Docker 守护进程通信。一、在 Docker 主机上安装 docker-pypip install docker-py二、修改docker配置文件/etc/sysconfig/docker,添加以下参数,启用监听端口other_args='--insecure-registry 10.44.86.222:5000 --graph=/data/docker/images --registry-mirror=https://10.44.86.222:5000 -H tcp://10.44.86.222:9527 -H unix:///var/run/docker.sock'三、测试连接[root@ali-sz01-qgz-prd-048 /root]#pythonPython 2.7.8 (default, Feb &2 :49)&[GCC 4.4.7
(Red Hat 4.4.7-16)] on linux2Type "help", "copyright", "credits" or "license" for more information.&&& import docker&&& client = docker.Client(base_url='tcp://10.44.86.222:9527',version='1.21',timeout=5) & & & & & & & & & &&&&& print(client.images())[{u'Created': , u'Labels': {}, u'VirtualSize': , u'ParentId': u'4378e9fcba21c61dd7e7e2bb95b159b73d61cbc7fe1efe', u'RepoTags': [u'tomcat-basess:latest'], u'RepoDigests': [], u'Id': u'b4a6fb0dd83ce1a18ae17ecedc363d51b9', u'Size': 0}, {u'Created': , u'Labels': {}, u'VirtualSize': , u'ParentId': u'4378e9fcba21c61dd7e7e2bb95b159b73d61cbc7fe1efe', u'RepoTags': [u'tomcat-bases:latest'], u'RepoDigests': [], u'Id': u'aeb91e6eba33fcc2b5fa8a0f0ae401491', u'Size': 0}, {u'Created': , u'Labels': {}, u'VirtualSize': , u'ParentId': u'4378e9fcba21c61dd7e7e2bb95b159b73d61cbc7fe1efe', u'RepoTags': [u'tomcat-base:latest'], u'RepoDigests': [], u'Id': u'cb468cfadefce0ab208bbc5bbb94db0462ede', u'Size': 0}, {u'Created': , u'Labels': None, u'VirtualSize': , u'ParentId': u'', u'RepoTags': [u'centos6-base:latest', u'10.44.86.222:5000/centos6-base:latest'], u'RepoDigests': [], u'Id': u'674ea1a0cfd52a4bcce6d3b30ef9ea549a', u'Size': }, {u'Created': , u'Labels': None, u'VirtualSize': , u'ParentId': u'', u'RepoTags': [u'10.44.86.222:5000/centos6.7-base:latest'], u'RepoDigests': [], u'Id': u'0d58c43c9b64cda129ee8cd94bc7ba8fe7a60f064f1b', u'Size': }, {u'Created': , u'Labels': None, u'VirtualSize': , u'ParentId': u'4bf2e10c5b06cccfde1b0edb05cdf46b0e775', u'RepoTags': [u'registry:latest'], u'RepoDigests': [], u'Id': u'07d93e41c370ee6d181ae0fefdecc156e6d2f092ab6f44', u'Size': 0}]&&&四、版本对应错误解决方案如果客户端版本与服务端版本对应不上,报以下错误,可以通过升级docker方式解决Traceback (most recent call last):& File "&stdin&", line 1, in &module&& File "/usr/local/python/lib/python2.7/site-packages/docker/api/container.py", line 68, in containers& & res = self._result(self._get(u, params=params), True)& File "/usr/local/python/lib/python2.7/site-packages/docker/client.py", line 146, in _result& & self._raise_for_status(response)& File "/usr/local/python/lib/python2.7/site-packages/docker/client.py", line 142, in _raise_for_status& & raise errors.APIError(e, response, explanation=explanation)docker.errors.APIError: 400 Client Error: Bad Request ("client is newer than server (client API version: 1.21, server API version: 1.19)")升级方法:1、下载docker最近稳定版curl -sSL -O /builds/Linux/x86_64/docker-1.9.12、停止docker服务并备份文件service docker stopmv /usr/bin/docker /usr/bin/docker_bak3、升级dockermv docker-1.9.1 /usr/bin/dockerchmod +x /usr/bin/dockerservice docker start4、查看最新版本docker -v本文出自 “” 博客,请务必保留此出处
了这篇文章
类别:┆阅读(0)┆评论(0)【编者的话】本文根据博客整理发布。文章详细介绍了Docker Registry以及带UI管理的仓库管理软件 Portus搭建过程。前言:首先,Docker Hub是一个很好的用于管理公共镜像的地方,我们可以在上面找到想要的镜像(Docker Hub的下载量已经达到数亿次);而且我们也可以把自己的镜像推送上去。但是,有的时候,使用场景需要我们有一个私有的镜像仓库用于管理自己的镜像,这个时候我们就通过Registry来实现此目的。本文详细介绍了本地镜像仓库Docker Registry & Portus的搭建过程(Portus是一个带UI管理的仓库管理软件),对于文中细节有兴趣或有疑问的朋友欢迎加群讨论。Registry搭建篇Docker & Registry环境准备在谈到Registry的部署之前,我们首先要考虑设计一个什么样Registry的仓库环境,是部署测试环境,还是生产环境。如果是用于生产环境发布Registry,必须考虑如下因素:a. 应在何处存储镜像?b. 用户的权限是否受控?c. 当发生问题,如何解决?日志是否可以查看?d. 如何快速提取镜像?(注:这是至关重要的,如果依赖镜像进行构建测试环境、生产环境或自动化系统,这是取决仓库是否有生命力的最重要指标。)本实例把存储镜像的路径放置到宿主机的文件路径下。例如:/opt/myregistry目录中。这样即使宿主机中Docker Registry 出现问题,我们再重创建一个,把此路径添加到新Registry Server中,那么之前上传的镜像文件仍然存在,这就更方便大家使用。下面是安装之前进行的一些准备工作:1.Docker安装首先,选择一个合适的PC机做宿主机,其配置参数如下:CPU: Intel E8400 Duo CPU 3.0GHz RAM: 2G disk:300GCPU查看命令: more /proc/cpuinfo |grep "model name"Mem查看命令: grep MemTotal /proc/meminfo
2.Registry安装&由于Docker和Registry更新比较快,所以我们在此宿主机中进行安装的时候,选择Registry2.1版本进行安装。yum -y install docker-registry
至此,和registry的安装已经完成,下面开始进行配置和测试。
注:安装完成后需要对Docker和Registry进行enable and start。Registry原理Docker模型的核心部分是有效的利用分层镜像机制,镜像可以通过分层来进行继承,基于基础镜像,可以制作各种具体的应用镜像。不同的Docker容器可以共享一些基础的文件系统层,同时再加上自己独有的改动层,大大提高了存储的效率。由于最终镜像最终是以tar.gz的方式静态存储在服务器端,这种存储适用于对象存储而不是块存储。一次docker pull 发生的交互▼
Client向Index请求,知道从哪里下载CentOS
CentOS在RegistryA
CentOS的Checksum,所有层的Token
Client向Registry A请求, CentOS的所有层。Registry A负责存储CentOS,以及它所依赖的层、
Regsitry A向Index发起请求,验证用户Token的合法性
Index返回这次请求是否合法
Client从Registry下载所有的层
Registry从后端存储中获取实际的文件数据,返给Client
Registry配置1.启动Registry容器sudo docker run &d &p 80:5000 --restart=always --name registry -v /opt/myregistry:/var/lib/registry registry:2
Registry服务默认会将上传的镜像保存在容器的/var/lib/registry,我们将主机的/opt/registry目录挂载到该目录,即可实现将镜像保存到主机的/opt/registry目录了。运行docker ps看一下容器情况:
说明我们已经启动了Registry服务,打开浏览器输入,出现下面情况说明Registry运行正常。
2.客户机访问Registry对于需要访问Registry仓库的客户机来说,首先需要修改/etc/sysconfig/docker的配置文件:添加 --insecure-registry 192.168.0.70:80
3.客户端向Registry存放镜像首先,需要docker tag给需要上传的镜像文件打标。然后再从本地上传镜像到仓库。
4.客户端向仓库Pull镜像在另外一台主机上使用pull从192.168.0.70的仓库中把镜像给Pull下来
通过以上操作就可以看到我们已经Pull的镜像,然后可以运行此镜像,开始你的应用之旅。到此应该说Registry基本搭建完成,但是仍然不适合实际的使用。因为不方便管理和查看到上传的镜像和权限设置。接下来我们介绍一个带UI管理的仓库管理软件&【Portus】Portus搭建篇注:请勿将本篇作为上篇Registry安装内容延续,以下内容为全新环境下的Portus搭建。Portus安装Portus(by SUSE)是用于 Docker Registry API(v2)的开源前端和授权工具,最低要求注册表版本是 2.1。它可以作为授权服务器和用户界面,用于新一代的 Docker Registry。具有以下优点:1.)安全:Portus 实现了最新的Docker Registry中定义的新的授权方案。它允许对你所有的镜像进行细颗粒度控制,你可以决定哪个用户和团队可 push/pull 镜像。2.)轻松管理用户: 在 Portus 映射你的公司,可以定义任意数量的 Team,并从 Team 添加和移除用户。Team 有三种类型的用户:Viewers ,只能 pull 镜像;Contributors,可以 push/pull 镜像;Owners,类似 contributors,但可以从 team 添加或移除用户。&3.)搜索: Portus 提供你的私人注册表的内容的预览,同时有一个快速搜索镜像的功能。&4.)审计: 用户的所有相关事件都会被Portus自动记录,并可被管理员进行用户分析。1.安装Docker-Compose首先,yum添加源&[ root@bogon]# yum -y install epel-release安装python-pip&[root@ bogon]# yum -y install python-pip安装docker-compose&pip install -U docker-compose
到这里docker-compse就完成了。2.从Git到Portus的代码搭建正常安装方法: 需要到Git Clone&上获取Portus的源码。下载包Portus_git.tar.gz,解压此源码包,并修改Gemfile.lnk 的第一行:&&修改为&&。运行compose-setup.sh -e server IP。进行构建安装。(此处省略掉)
由于Portus在安装过程中,需要下载几个依赖的镜像包,例如: Portus安装依赖MariaDB,portus_web.tar、rails4.2.2tar,Registry2.1.1.tar安装过程中下载比较慢。我们先下载了再进行安装过程。
由于我先把这几个已经下载完成,所以首先拷贝到宿主机的目录中了,需要直接解压。
3. 安装Portus程序安装之前需要把拷贝到宿主机中的几个依赖镜像给load到Images中。
关于Registry的存储路径修改,请在安装前先到compose中修改docker-compose.yml.template文件。这里面包含web端口和挂载volumes等参数。然后,再执行安装脚本 ./compose-setup.sh -e 192.168.0.70。(由于本实例重新安装了Registry,所以,此处宿主机和容器的端口都是5000。)
然后到Portus源代码文件中执行./compose-setup.sh。
到此,Portus的安装已经完成.。4. 修改Docker配置文件此时,我们还需要修改vi /lib/systemd/system/docker.service 把--insecure-registry 192.168.0.70:5000这句加到ExecStart=/usr/bin/docker这个配置项后。
重启Dockersystemctl daemon-reload&systemctl restart docker重启portus容器docker start portus_db_1&portus_web_1 portus_crono_1 portus_registry_1可以在浏览器中打开登录窗口。
在客户机中需要修改 /etc/sysconfig/docker下的文件。
Portus配置与验证&1.登录配置程序Portus的登录界面需要创建用户名和密码。然后进行Registry的设置。
创建test01和test02帐户,并Enabled帐户,然后进行登录测试。2.上传镜像测试
3.下载镜像测试
总结Docker Registry的创建私有仓库的方法有很多种。像京东的Docker镜像存储系统--Speedy,Registry+Nginx &SSL等后续将进一步探究, 实现开发、测试以及生产的一体化流程,敬请期待!本文电子书下载:网页下载:百度云盘下载:[](http://&c)博客期刊:_________________________________________________________________________________________________________温馨提示:云舒网络携手Rancher Labs推出【Rancher | 实战微信群】,在线为您分享Docker技术干货,更有往期回顾精选期刊等你拿!本群汇集了Rancher中国最强技术精英团队及业内技术派高人,宗旨是为了大家拥有更专业的平台交流Rancher实战技术,实时与Rancher创始团队面对面!同时欢迎各位分享自己的经验、疑难问题,我们将定期邀请分享嘉宾做各类话题分享及回顾,共同实践研究Docker容器生态圈。对Rancher和Docker技术感兴趣、或对本文中细节需继续探讨的朋友,欢迎加入本群参与讨论!&加微信群方法:1.关注【云舒网络】公众号2.留言&我要加群&&QQ群号:
阅读(...) 评论() &

我要回帖

更多关于 install pip 的文章

 

随机推荐