[root@linux-node1 ~]
[root@linux-node1 stress]
FROM centos
ADD epel-6.repo
/etc/yum
.repos.d/
RUN yum -y
install
stress && yum clean all
ENTRYPOINT [
"stress"
]
[root@linux-node1 stress]
[root@linux-node1 stress]
Sending build context to Docker daemon 4.096 kB
Step 1 : FROM centos
---> 970633036444
Step 2 : ADD epel-6.repo
/etc/yum
.repos.d/
---> 77600d6b488e
Removing intermediate container f141f47cb34f
Step 3 : RUN yum -y
install
stress && yum clean all
---> Running
in
0949035c73da
Loaded plugins: fastestmirror, ovl
http:
//mirrors
.aliyuncs.com
/epel/6/x86_64/repodata/98697cba0d79c083725de0c38b11c15878b35f5e27262becc02cd7ed1a13ac22-updateinfo
.xml.bz2: [Errno 12] Timeout on http:
//mirrors
.aliyuncs.com
/epel/6/x86_64/repodata/98697cba0d79c083725de0c38b11c15878b35f5e27262becc02cd7ed1a13ac22-updateinfo
.xml.bz2: (28,
'Connection timed out after 30001 milliseconds'
)
Trying other mirror.
Determining fastest mirrors
* base: mirrors.zju.edu.cn
* epel: mirrors.aliyun.com
* extras: mirrors.zju.edu.cn
* updates: mirrors.cqu.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package stress.x86_64 0:1.0.4-4.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
stress x86_64 1.0.4-4.el6 epel 36 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 36 k
Installed size: 89 k
Downloading packages:
Running transaction check
Running transaction
test
Transaction
test
succeeded
Running transaction
Installing : stress-1.0.4-4.el6.x86_64 1
/1
install
-info: No such
file
or directory
for
/usr/share/info/stress
.info
Verifying : stress-1.0.4-4.el6.x86_64 1
/1
Installed:
stress.x86_64 0:1.0.4-4.el6
Complete!
Loaded plugins: fastestmirror, ovl
Cleaning repos: base epel extras updates
Cleaning up everything
Cleaning up list of fastest mirrors
---> 504c747b9b51
Removing intermediate container 0949035c73da
Step 4 : ENTRYPOINT stress
---> Running
in
ea8d8eb8fb87
---> 7e1e0e5cf825
Removing intermediate container ea8d8eb8fb87
Successfully built 7e1e0e5cf825
[root@linux-node1 stress]
REPOSITORY TAG IMAGE ID CREATED SIZE
stress latest 7e1e0e5cf825 About a minute ago 214 MB
ningx-
file
v01 460b5af495c4 3 days ago 531.9 MB
nginx
/ningx
1.9.3v02 097c98e3cb2b 3 days ago 534.6 MB
nginx 1.9.3 d2cfb9ed3f2b 3 days ago 534.6 MB
docker.io
/centos
latest 970633036444 11 days ago 196.7 MB
[root@linux-node1 stress]