docker 使用 iso虛擬光碟機一鍵式安裝
阿新 • • 發佈:2019-01-02
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#! /bin/bash date "+%Y%m%d %H:%M:%S"
cd /mnt/cdrom/
cp -r /mnt/cdrom/yzdocker/ /tmp/yzdocker/
cd /tmp/yzdocker/
echo "Linux docker as blow:"
ls
rpm -ivh libcgroup-*
rpm -ivh docker-engine-1.7.1-1.el7.centos.x86_64.rpm
sleep 1
service docker start
docker -v
docker images
|
1 |
mkdir /mnt/cdrom;mount -t auto /dev/cdrom /mnt/cdrom;cd /mnt/cdrom/;cp dockerstart.sh /tmp;cd /tmp;tr -d '\r' <dockerstart.sh>dockerstart1.sh;chmod +x dockerstart1.sh;sh dockerstart1.sh
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# mkdir /mnt/cdrom;mount -t auto /dev/cdrom /mnt/cdrom;cd /mnt/cdrom/;cp dockerstart.sh /tmp;cd /tmp;chmod +x dockerstart.sh;tr -d '\r' <dockerstart.sh>dockerstart1.sh;sh dockerstart1.sh
mount: /dev/sr0 is write-protected, mounting read-only
20151124 15:58:34
Linux docker as blow:
docker-engine-1.7.1-1.el7.centos.x86_64.rpm libcgroup-devel-0.41-8.el7.x86_64.rpm libcgroup-tools-0.41-8.el7.x86_64.rpm
libcgroup-0.41-8.el7.x86_64.rpm libcgroup-pam-0.41-8.el7.x86_64.rpm
warning: libcgroup-0.41-8.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:libcgroup-0.41-8.el7 ################################# [ 25%]
2:libcgroup-devel-0.41-8.el7 ################################# [ 50%]
3:libcgroup-pam-0.41-8.el7 ################################# [ 75%]
4:libcgroup-tools-0.41-8.el7 ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:docker-engine-1.7.1-1.el7.centos ################################# [100%]
Starting docker (via systemctl): [ OK ]
Docker version 1.7.1, build 786b29d
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
|
1 2 3 4 5 6 7 8 9 10 11 12 |
# docker pull centos:7
7: Pulling from centos
47d44cb6f252: Pull complete
168a69b62202: Pull complete
812e9d9d677f: Pull complete
4234bfdd88f8: Pull complete
ce20c473cd8a: Pull complete
Digest: sha256:0e23418e4e24aeeecf06db0623dc06cb0d386da01e390bc1fefa630a92e3c8d4
Status: Downloaded newer image for centos:7
# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
centos 7 ce20c473cd8a 5 weeks ago 172.3 MB
|