• docker centos install


    1. [root@k8s-master ~]# docker search centos
    2. NAME DESCRIPTION STARS OFFICIAL AUTOMATED
    3. centos The official build of CentOS. 7283 [OK]
    4. kasmweb/centos-7-desktop CentOS 7 desktop for Kasm Workspaces 24
    5. continuumio/centos5_gcc5_base 3
    6. couchbase/centos7-systemd centos7-systemd images with additional debug… 3 [OK]
    7. dokken/centos-7 CentOS 7 image for kitchen-dokken 3
    8. dokken/centos-stream-9 2
    9. dokken/centos-stream-8 2
    10. spack/centos7 CentOS 7 with Spack preinstalled 1
    11. spack/centos6 CentOS 6 with Spack preinstalled 1
    12. dokken/centos-8 CentOS 8 image for kitchen-dokken 0
    13. dokken/centos-6 CentOS 6 image for kitchen-dokken 0
    14. ustclug/centos Official CentOS Image with USTC Mirror 0
    15. bitnami/centos-extras-base 0
    16. datadog/centos-i386 0
    17. corpusops/centos-bare https://github.com/corpusops/docker-images/ 0
    18. corpusops/centos centos corpusops baseimage 0
    19. couchbase/centos-72-java-sdk 0
    20. couchbase/centos-72-jenkins-core 0
    21. bitnami/centos-base-buildpack Centos base compilation image 0 [OK]
    22. fnndsc/centos-python3 Source for a slim Centos-based Python3 image… 0 [OK]
    23. couchbase/centos-70-sdk-build 0
    24. couchbase/centos-69-sdk-nodevtoolset-build 0
    25. couchbase/centos-69-sdk-build 0
    26. dokken/centos-5 EOL DISTRO: For use with kitchen-dokken, Bas… 0
    27. spack/centos-stream 0
    28. [root@k8s-master ~]#
    29. [root@k8s-master ~]#
    30. [root@k8s-master ~]#
    31. [root@k8s-master ~]# docker pull centos
    32. Using default tag: latest
    33. latest: Pulling from library/centos
    34. a1d0c7532777: Downloading [> ] 1.059MB/79.21MB
    35. ^[^Z
    36. [1]+ Stopped docker pull centos
    37. [root@k8s-master ~]# docker pull centos
    38. Using default tag: latest
    39. latest: Pulling from library/centos
    40. a1d0c7532777: Downloading [==================================================>] 74.25MB/74.25MB
    41. unexpected EOF
    42. [root@k8s-master ~]#
    43. [root@k8s-master ~]#
    44. [root@k8s-master ~]#
    45. [root@k8s-master ~]# docker images
    46. REPOSITORY TAG IMAGE ID CREATED SIZE
    47. calico/kube-controllers v3.23.3 32d39d8db456 4 weeks ago 127MB
    48. calico/cni v3.23.3 ecf96bae0aa7 4 weeks ago 254MB
    49. calico/node v3.23.3 5f5175f39b19 4 weeks ago 203MB
    50. registry.aliyuncs.com/google_containers/kube-apiserver v1.22.12 d922296a8b85 5 weeks ago 128MB
    51. registry.aliyuncs.com/google_containers/kube-controller-manager v1.22.12 f5ef4d6e36ee 5 weeks ago 122MB
    52. registry.aliyuncs.com/google_containers/kube-proxy v1.22.12 761817698b62 5 weeks ago 104MB
    53. registry.aliyuncs.com/google_containers/kube-scheduler v1.22.12 5ee90014579c 5 weeks ago 52.7MB
    54. registry.aliyuncs.com/google_containers/etcd 3.5.0-0 004811815584 14 months ago 295MB
    55. registry.aliyuncs.com/google_containers/coredns v1.8.4 8d147537fb7d 14 months ago 47.6MB
    56. registry.aliyuncs.com/google_containers/pause 3.5 ed210e3e4a5b 17 months ago 683kB
    57. ghcr.io/weaveworks/launcher/weave-npc 2.8.1 7f92d556d4ff 18 months ago 39.3MB
    58. ghcr.io/weaveworks/launcher/weave-kube 2.8.1 df29c0a4002c 18 months ago 89MB
    59. eipwork/kuboard latest a1a5060fe43d 19 months ago 183MB
    60. portainer/portainer latest 980323c8eb3f 19 months ago 196MB
    61. francescou/docker-compose-ui latest 8974c444f0d1 4 years ago 129MB
    62. abh1nav/dockerui latest 6e4d05915b2a 7 years ago 470MB
    63. [root@k8s-master ~]# docker pull kasmweb/centos-7-desktop
    64. Using default tag: latest
    65. Error response from daemon: manifest for kasmweb/centos-7-desktop:latest not found
    66. [root@k8s-master ~]#
    67. [root@k8s-master ~]#
    68. [root@k8s-master ~]# docker pull centos:7.9.2009
    69. 7.9.2009: Pulling from library/centos
    70. 2d473b07cdd5: Pull complete
    71. Digest: sha256:c73f515d06b0fa07bb18d8202035e739a494ce760aa73129f60f4bf2bd22b407
    72. Status: Downloaded newer image for centos:7.9.2009
    73. [root@k8s-master ~]# docker images
    74. REPOSITORY TAG IMAGE ID CREATED SIZE
    75. calico/kube-controllers v3.23.3 32d39d8db456 4 weeks ago 127MB
    76. calico/cni v3.23.3 ecf96bae0aa7 4 weeks ago 254MB
    77. calico/node v3.23.3 5f5175f39b19 4 weeks ago 203MB
    78. registry.aliyuncs.com/google_containers/kube-apiserver v1.22.12 d922296a8b85 5 weeks ago 128MB
    79. registry.aliyuncs.com/google_containers/kube-proxy v1.22.12 761817698b62 5 weeks ago 104MB
    80. registry.aliyuncs.com/google_containers/kube-controller-manager v1.22.12 f5ef4d6e36ee 5 weeks ago 122MB
    81. registry.aliyuncs.com/google_containers/kube-scheduler v1.22.12 5ee90014579c 5 weeks ago 52.7MB
    82. centos 7.9.2009 eeb6ee3f44bd 11 months ago 204MB
    83. registry.aliyuncs.com/google_containers/etcd 3.5.0-0 004811815584 14 months ago 295MB
    84. registry.aliyuncs.com/google_containers/coredns v1.8.4 8d147537fb7d 14 months ago 47.6MB
    85. registry.aliyuncs.com/google_containers/pause 3.5 ed210e3e4a5b 17 months ago 683kB
    86. ghcr.io/weaveworks/launcher/weave-npc 2.8.1 7f92d556d4ff 18 months ago 39.3MB
    87. ghcr.io/weaveworks/launcher/weave-kube 2.8.1 df29c0a4002c 18 months ago 89MB
    88. eipwork/kuboard latest a1a5060fe43d 19 months ago 183MB
    89. portainer/portainer latest 980323c8eb3f 19 months ago 196MB
    90. francescou/docker-compose-ui latest 8974c444f0d1 4 years ago 129MB
    91. abh1nav/dockerui latest 6e4d05915b2a 7 years ago 470MB
    92. [root@k8s-master ~]#
    93. [root@k8s-master ~]#
    94. [root@k8s-master ~]#
    95. [root@k8s-master ~]# docker run -i -t --name centos-master --privileged=true -d centos:7.9.2009 /usr/sbin/init
    96. [root@k8s-master ~]# docker run -i -t --name centos-master --net=bridge --privileged=true -d centos:7.9.2009 /bin/bash
    97. e6498618f59342cf6aeb8c732bff30d1a7e6c56c3ad4ccdce55cc01fcd1b4a0b
    98. [root@k8s-master ~]# docker exec -i -t centos-master /bin/bash
    99. [root@358d95356d76 /]#
    100. [root@358d95356d76 /]#
    101. [root@358d95356d76 /]# ll
    102. total 12
    103. -rw-r--r-- 1 root root 12114 Nov 13 2020 anaconda-post.log
    104. lrwxrwxrwx 1 root root 7 Nov 13 2020 bin -> usr/bin
    105. drwxr-xr-x 19 root root 3320 Aug 18 02:51 dev
    106. drwxr-xr-x 1 root root 52 Aug 18 02:51 etc
    107. drwxr-xr-x 2 root root 6 Apr 11 2018 home
    108. lrwxrwxrwx 1 root root 7 Nov 13 2020 lib -> usr/lib
    109. lrwxrwxrwx 1 root root 9 Nov 13 2020 lib64 -> usr/lib64
    110. drwxr-xr-x 2 root root 6 Apr 11 2018 media
    111. drwxr-xr-x 2 root root 6 Apr 11 2018 mnt
    112. drwxr-xr-x 2 root root 6 Apr 11 2018 opt
    113. dr-xr-xr-x 329 root root 0 Aug 18 02:50 proc
    114. dr-xr-x--- 2 root root 114 Nov 13 2020 root
    115. drwxr-xr-x 14 root root 300 Aug 18 02:51 run
    116. lrwxrwxrwx 1 root root 8 Nov 13 2020 sbin -> usr/sbin
    117. drwxr-xr-x 2 root root 6 Apr 11 2018 srv
    118. dr-xr-xr-x 13 root root 0 Aug 18 02:50 sys
    119. drwxrwxrwt 7 root root 132 Nov 13 2020 tmp
    120. drwxr-xr-x 13 root root 155 Nov 13 2020 usr
    121. drwxr-xr-x 1 root root 44 Aug 18 02:51 var
    122. [root@358d95356d76 /]#
    123. [root@358d95356d76 /]#
    124. [root@358d95356d76 /]#
    125. [root@k8s-master ~]# docker network create --subnet=172.18.0.0/16 network-docker

    docker CentOS 7.9_WinkeyTseng_YongTai的博客-CSDN博客

    docker centos install_WinkeyTseng_YongTai的博客-CSDN博客

    docker network create_WinkeyTseng_YongTai的博客-CSDN博客

    docker centos ip setting_WinkeyTseng_YongTai的博客-CSDN博客

    docker centos host setting_WinkeyTseng_YongTai的博客-CSDN博客

    docker centos date syn_WinkeyTseng_YongTai的博客-CSDN博客

  • 相关阅读:
    java.time.LocalDateTime详解
    虚拟机搭建负载均衡,mysql主从复制和读写分离(四、搭建主从复制和读写分离)
    @Elasticsearch之深度应用及原理剖析--索引文档存储段合并机制
    EIP-3664合约研究笔记03--装备属性随机生成算法
    你绝对需要的Facebook养号攻略,教你如何养成耐用号
    Activiti
    解决IE浏览器无法删除证书的问题
    mysql分布式锁的实现
    数字孪生技术架构
    Spring Cloud---使用gateway实现路由转发和负责均衡
  • 原文地址:https://blog.csdn.net/spencer_tseng/article/details/126409034