文章目录

  • 网络源安装docker
    • 配置yum源
    • 清除缓存并查看源是否更新
    • 安装docker并启动服务
  • 离线安装docker【内网环境安装】
    • 说明
    • docker的rpm包准备
    • 离线安装docker包
  • 安装docker-compose
    • 一、docker-compose简介
    • 二、安装docker-compose
      • 内网环境【离线】
      • 通外网环境
    • 三、docker-compose常用命令
  • 内网环境脚本批量安装docker

网络源安装docker

配置yum源

  • 注:系统最好是 centos的,如果是rhel的系统,可能无法使用。【yum收费的】
  • 流程
    • 先进入/etc/yum.repos.d/目录,新建一个文件夹,将现在的全部移到文件夹中【删除也行】
    • 然后下载docker的网络源到上面目录中:wget ftp://ftp.rhce.cc/k8s/* -P /etc/yum.repos.d/
      ftp://ftp.rhce.cc/k8s/* 这是阿里云的镜像地址】
[root@ccx ~]#
[root@ccx ~]# cd /etc/yum.repos.d/
[root@ccx yum.repos.d]# mkdir bak
[root@ccx yum.repos.d]# mv * bak
[root@ccx yum.repos.d]# wget ftp://ftp.rhce.cc/k8s/* -P /etc/yum.repos.d/
--2021-06-16 16:27:53--  ftp://ftp.rhce.cc/k8s/*=> ‘/etc/yum.repos.d/.listing’
Resolving ftp.rhce.cc (ftp.rhce.cc)... 101.37.152.41
Connecting to ftp.rhce.cc (ftp.rhce.cc)|101.37.152.41|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /k8s ... done.
==> PASV ... done.    ==> LIST ... done.[ <=>                                                                  ] 398         --.-K/s   in 0s      2021-06-16 16:27:55 (45.7 MB/s) - ‘/etc/yum.repos.d/.listing’ saved [398]Removed ‘/etc/yum.repos.d/.listing’.
--2021-06-16 16:27:55--  ftp://ftp.rhce.cc/k8s/CentOS-Base.repo=> ‘/etc/yum.repos.d/CentOS-Base.repo’
==> CWD not required.
==> PASV ... done.    ==> RETR CentOS-Base.repo ... done.
Length: 2206 (2.2K)100%[=====================================================================>] 2,206       --.-K/s   in 0s      2021-06-16 16:27:56 (162 MB/s) - ‘/etc/yum.repos.d/CentOS-Base.repo’ saved [2206]--2021-06-16 16:27:56--  ftp://ftp.rhce.cc/k8s/docker-ce.repo=> ‘/etc/yum.repos.d/docker-ce.repo’
==> CWD not required.
==> PASV ... done.    ==> RETR docker-ce.repo ... done.
Length: 2640 (2.6K)100%[=====================================================================>] 2,640       --.-K/s   in 0s      2021-06-16 16:27:56 (127 MB/s) - ‘/etc/yum.repos.d/docker-ce.repo’ saved [2640]--2021-06-16 16:27:56--  ftp://ftp.rhce.cc/k8s/epel.repo=> ‘/etc/yum.repos.d/epel.repo’
==> CWD not required.
==> PASV ... done.    ==> RETR epel.repo ... done.
Length: 923100%[=====================================================================>] 923         --.-K/s   in 0.006s  2021-06-16 16:27:56 (163 KB/s) - ‘/etc/yum.repos.d/epel.repo’ saved [923]--2021-06-16 16:27:56--  ftp://ftp.rhce.cc/k8s/k8s.repo=> ‘/etc/yum.repos.d/k8s.repo’
==> CWD not required.
==> PASV ... done.    ==> RETR k8s.repo ... done.
Length: 276100%[=====================================================================>] 276         --.-K/s   in 0s      2021-06-16 16:27:57 (24.3 MB/s) - ‘/etc/yum.repos.d/k8s.repo’ saved [276][root@ccx yum.repos.d]#

清除缓存并查看源是否更新

  • yum clean all : 清除缓存
  • yum repolist : 查看yum数量
[root@ccx yum.repos.d]# yum clean all
Loaded plugins: fastestmirror, langpacks
Cleaning repos: base docker-ce-stable epel extras kubernetes updates
Cleaning up list of fastest mirrors
[root@ccx yum.repos.d]# yum repolist
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
base                                                                                    | 3.6 kB  00:00:00
docker-ce-stable                                                                        | 3.5 kB  00:00:00
epel                                                                                    | 4.7 kB  00:00:00
extras                                                                                  | 2.9 kB  00:00:00
kubernetes/signature                                                                    |  844 B  00:00:00
kubernetes/signature                                                                    | 1.4 kB  00:00:00 !!!
updates                                                                                 | 2.9 kB  00:00:00
(1/10): docker-ce-stable/x86_64/updateinfo                                              |   55 B  00:00:00
(2/10): epel/x86_64/group_gz                                                            |  96 kB  00:00:00
(3/10): docker-ce-stable/x86_64/primary_db                                              |  62 kB  00:00:00
(4/10): base/7/x86_64/group_gz                                                          | 153 kB  00:00:00
(5/10): extras/7/x86_64/primary_db                                                      | 242 kB  00:00:00
(6/10): kubernetes/primary                                                              |  90 kB  00:00:00
(7/10): epel/x86_64/updateinfo                                                          | 1.0 MB  00:00:00
(8/10): base/7/x86_64/primary_db                                                        | 6.1 MB  00:00:04
(9/10): epel/x86_64/primary_db                                                          | 6.9 MB  00:00:05
(10/10): updates/7/x86_64/primary_db                                                    | 8.8 MB  00:00:06
kubernetes                                                                                             666/666
repo id                                  repo name                                                       status
base/7/x86_64                            CentOS-7 - Base - mirrors.aliyun.com                            10,072
docker-ce-stable/x86_64                  Docker CE Stable - x86_64                                          117
epel/x86_64                              Extra Packages for Enterprise Linux 7 - x86_64                  13,608
extras/7/x86_64                          CentOS-7 - Extras - mirrors.aliyun.com                             498
kubernetes                               Kubernetes                                                         666
updates/7/x86_64                         CentOS-7 - Updates - mirrors.aliyun.com                          2,437
repolist: 27,398

安装docker并启动服务

  • yum -y install docker-ce : 安装docker服务【一共有9个包】
  • systemctl enable docker --now:开机自启并现在启动
  • docker info # 查看详细信息
[root@ccx yum.repos.d]# yum -y install docker-ce
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
base                                                                           | 3.6 kB  00:00:00
docker-ce-stable                                                               | 3.5 kB  00:00:00
epel                                                                           | 4.7 kB  00:00:00
extras                                                                         | 2.9 kB  00:00:00
kubernetes/signature                                                           |  844 B  00:00:00
Retrieving key from https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
Importing GPG key 0x307EA071:Userid     : "Rapture Automatic Signing Key (cloud-rapture-signing-key-2021-03-01-08_01_09.pub)"Fingerprint: 7f92 e05b 3109 3bef 5a3c 2d38 feea 9169 307e a071From       : https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
Retrieving key from https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
kubernetes/signature                                                           | 1.4 kB  00:00:00 !!!
updates                                                                        | 2.9 kB  00:00:00
(1/10): epel/x86_64/group_gz                                                   |  96 kB  00:00:00
(2/10): docker-ce-stable/x86_64/updateinfo                                     |   55 B  00:00:00
(3/10): docker-ce-stable/x86_64/primary_db                                     |  62 kB  00:00:00
(4/10): base/7/x86_64/group_gz                                                 | 153 kB  00:00:00
(5/10): epel/x86_64/updateinfo                                                 | 1.0 MB  00:00:00
(6/10): kubernetes/primary                                                     |  92 kB  00:00:00
(7/10): extras/7/x86_64/primary_db                                             | 242 kB  00:00:00
(8/10): base/7/x86_64/primary_db                                               | 6.1 MB  00:00:01
(9/10): epel/x86_64/primary_db                                                 | 6.9 MB  00:00:02
(10/10): updates/7/x86_64/primary_db                                           | 8.8 MB  00:00:02
kubernetes                                                                                    678/678
Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 3:20.10.7-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Processing Dependency: containerd.io >= 1.4.1 for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Processing Dependency: docker-ce-cli for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Processing Dependency: docker-ce-rootless-extras for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.119.2-1.911c772.el7_8 will be installed
---> Package containerd.io.x86_64 0:1.4.6-3.1.el7 will be installed
---> Package docker-ce-cli.x86_64 1:20.10.7-3.el7 will be installed
--> Processing Dependency: docker-scan-plugin(x86-64) for package: 1:docker-ce-cli-20.10.7-3.el7.x86_64
---> Package docker-ce-rootless-extras.x86_64 0:20.10.7-3.el7 will be installed
--> Processing Dependency: fuse-overlayfs >= 0.7 for package: docker-ce-rootless-extras-20.10.7-3.el7.x86_64
--> Processing Dependency: slirp4netns >= 0.4 for package: docker-ce-rootless-extras-20.10.7-3.el7.x86_64
--> Running transaction check
---> Package docker-scan-plugin.x86_64 0:0.8.0-3.el7 will be installed
---> Package fuse-overlayfs.x86_64 0:0.7.2-6.el7_8 will be installed
--> Processing Dependency: libfuse3.so.3(FUSE_3.2)(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
--> Processing Dependency: libfuse3.so.3(FUSE_3.0)(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
--> Processing Dependency: libfuse3.so.3()(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
---> Package slirp4netns.x86_64 0:0.4.3-4.el7_8 will be installed
--> Running transaction check
---> Package fuse3-libs.x86_64 0:3.6.1-4.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved======================================================================================================Package                       Arch       Version                          Repository            Size
======================================================================================================
Installing:docker-ce                     x86_64     3:20.10.7-3.el7                  docker-ce-stable      27 M
Installing for dependencies:container-selinux             noarch     2:2.119.2-1.911c772.el7_8        extras                40 kcontainerd.io                 x86_64     1.4.6-3.1.el7                    docker-ce-stable      34 Mdocker-ce-cli                 x86_64     1:20.10.7-3.el7                  docker-ce-stable      33 Mdocker-ce-rootless-extras     x86_64     20.10.7-3.el7                    docker-ce-stable     9.2 Mdocker-scan-plugin            x86_64     0.8.0-3.el7                      docker-ce-stable     4.2 Mfuse-overlayfs                x86_64     0.7.2-6.el7_8                    extras                54 kfuse3-libs                    x86_64     3.6.1-4.el7                      extras                82 kslirp4netns                   x86_64     0.4.3-4.el7_8                    extras                81 kTransaction Summary
======================================================================================================
Install  1 Package (+8 Dependent packages)Total download size: 107 M
Installed size: 438 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/extras/packages/container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm is not installed
(1/9): container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm                    |  40 kB  00:00:00
warning: /var/cache/yum/x86_64/7/docker-ce-stable/packages/docker-ce-20.10.7-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
Public key for docker-ce-20.10.7-3.el7.x86_64.rpm is not installed
(2/9): docker-ce-20.10.7-3.el7.x86_64.rpm                                      |  27 MB  00:00:06
(3/9): containerd.io-1.4.6-3.1.el7.x86_64.rpm                                  |  34 MB  00:00:08
(4/9): docker-ce-rootless-extras-20.10.7-3.el7.x86_64.rpm                      | 9.2 MB  00:00:02
(5/9): fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm                                 |  54 kB  00:00:00
(6/9): slirp4netns-0.4.3-4.el7_8.x86_64.rpm                                    |  81 kB  00:00:00
(7/9): fuse3-libs-3.6.1-4.el7.x86_64.rpm                                       |  82 kB  00:00:00
(8/9): docker-scan-plugin-0.8.0-3.el7.x86_64.rpm                               | 4.2 MB  00:00:01
(9/9): docker-ce-cli-20.10.7-3.el7.x86_64.rpm                                  |  33 MB  00:00:08
------------------------------------------------------------------------------------------------------
Total                                                                 7.1 MB/s | 107 MB  00:00:15
Retrieving key from https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
Importing GPG key 0x621E9F35:Userid     : "Docker Release (CE rpm) <docker@docker.com>"Fingerprint: 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35From       : https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
Retrieving key from http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5From       : http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transactionInstalling : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch                                 1/9 Installing : containerd.io-1.4.6-3.1.el7.x86_64                                                 2/9 Installing : 1:docker-ce-cli-20.10.7-3.el7.x86_64                                               3/9 Installing : docker-scan-plugin-0.8.0-3.el7.x86_64                                              4/9 Installing : slirp4netns-0.4.3-4.el7_8.x86_64                                                   5/9 Installing : fuse3-libs-3.6.1-4.el7.x86_64                                                      6/9 Installing : fuse-overlayfs-0.7.2-6.el7_8.x86_64                                                7/9 Installing : docker-ce-rootless-extras-20.10.7-3.el7.x86_64                                     8/9 Installing : 3:docker-ce-20.10.7-3.el7.x86_64                                                   9/9 Verifying  : containerd.io-1.4.6-3.1.el7.x86_64                                                 1/9 Verifying  : fuse3-libs-3.6.1-4.el7.x86_64                                                      2/9 Verifying  : docker-scan-plugin-0.8.0-3.el7.x86_64                                              3/9 Verifying  : slirp4netns-0.4.3-4.el7_8.x86_64                                                   4/9 Verifying  : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch                                 5/9 Verifying  : 3:docker-ce-20.10.7-3.el7.x86_64                                                   6/9 Verifying  : 1:docker-ce-cli-20.10.7-3.el7.x86_64                                               7/9 Verifying  : docker-ce-rootless-extras-20.10.7-3.el7.x86_64                                     8/9 Verifying  : fuse-overlayfs-0.7.2-6.el7_8.x86_64                                                9/9 Installed:docker-ce.x86_64 3:20.10.7-3.el7                                                                    Dependency Installed:container-selinux.noarch 2:2.119.2-1.911c772.el7_8 containerd.io.x86_64 0:1.4.6-3.1.el7            docker-ce-cli.x86_64 1:20.10.7-3.el7               docker-ce-rootless-extras.x86_64 0:20.10.7-3.el7docker-scan-plugin.x86_64 0:0.8.0-3.el7            fuse-overlayfs.x86_64 0:0.7.2-6.el7_8           fuse3-libs.x86_64 0:3.6.1-4.el7                    slirp4netns.x86_64 0:0.4.3-4.el7_8              Complete!
[root@ccx yum.repos.d]#
[root@ccx ~]# systemctl enable docker --now
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[root@ccx ~]#[root@ccx ~]# docker info
Client:Context:    defaultDebug Mode: falsePlugins:app: Docker App (Docker Inc., v0.9.1-beta3)buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)scan: Docker Scan (Docker Inc., v0.8.0)Server:Containers: 0Running: 0Paused: 0Stopped: 0Images: 4Server Version: 20.10.7Storage Driver: overlay2Backing Filesystem: xfsSupports d_type: trueNative Overlay Diff: trueuserxattr: falseLogging Driver: json-fileCgroup Driver: cgroupfsCgroup Version: 1Plugins:Volume: localNetwork: bridge host ipvlan macvlan null overlayLog: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslogSwarm: inactiveRuntimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2Default Runtime: runcInit Binary: docker-initcontainerd version: d71fcd7d8303cbf684402823e425e9dd2e99285drunc version: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7init version: de40ad0Security Options:seccompProfile: defaultKernel Version: 3.10.0-957.el7.x86_64Operating System: CentOS Linux 7 (Core)OSType: linuxArchitecture: x86_64CPUs: 2Total Memory: 3.701GiBName: ccxID: 5FW3:5O7N:PZTJ:YUAT:GFXD:QEGA:GOA6:C2IE:I2FJ:FUQE:D2QT:QI6ADocker Root Dir: /var/lib/dockerDebug Mode: falseRegistry: https://index.docker.io/v1/Labels:Experimental: falseInsecure Registries:127.0.0.0/8Live Restore Enabled: false[root@ccx ~]#

离线安装docker【内网环境安装】

说明

  • 先准备一台能通外网的服务器,通过上面方法配置yum源【最好是centos系统】
  • 下载离线包的主机必须是没有安装docker-ce,如果已经安装,先卸载包及其依赖,方法见下面这个博客
    【yum】linux离线安装rpm包及其依赖和卸载包及其依赖

docker的rpm包准备

  • rpm包正常情况一共有9个
    不想去下载的,可以直接下载我打包的,这里面包含了docker和docker-compose
    docker和docker-compose安装包.rar

  • 需要i使用到下面的2条命令,命令说明如下

    • mkdir /docker :用于存放下载的包
    • yum install docker-ce -y --downloaddir=/docker --downloadonly
      - -downloaddir=/docker:存放路径
      - -downloadonly:只下载不安装
[root@ccx ~]# mkdir /docker
[root@ccx ~]# yum install docker-ce -y --downloaddir=/docker --downloadonly
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 3:20.10.7-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Processing Dependency: containerd.io >= 1.4.1 for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Processing Dependency: docker-ce-cli for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Processing Dependency: docker-ce-rootless-extras for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.119.2-1.911c772.el7_8 will be installed
---> Package containerd.io.x86_64 0:1.4.6-3.1.el7 will be installed
---> Package docker-ce-cli.x86_64 1:20.10.7-3.el7 will be installed
--> Processing Dependency: docker-scan-plugin(x86-64) for package: 1:docker-ce-cli-20.10.7-3.el7.x86_64
---> Package docker-ce-rootless-extras.x86_64 0:20.10.7-3.el7 will be installed
--> Processing Dependency: fuse-overlayfs >= 0.7 for package: docker-ce-rootless-extras-20.10.7-3.el7.x86_64
--> Processing Dependency: slirp4netns >= 0.4 for package: docker-ce-rootless-extras-20.10.7-3.el7.x86_64
--> Running transaction check
---> Package docker-scan-plugin.x86_64 0:0.8.0-3.el7 will be installed
---> Package fuse-overlayfs.x86_64 0:0.7.2-6.el7_8 will be installed
--> Processing Dependency: libfuse3.so.3(FUSE_3.2)(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
--> Processing Dependency: libfuse3.so.3(FUSE_3.0)(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
--> Processing Dependency: libfuse3.so.3()(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
---> Package slirp4netns.x86_64 0:0.4.3-4.el7_8 will be installed
--> Running transaction check
---> Package fuse3-libs.x86_64 0:3.6.1-4.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved===============================================================================================================Package                          Arch          Version                          Repository               Size
===============================================================================================================
Installing:docker-ce                        x86_64        3:20.10.7-3.el7                  docker-ce-stable         27 M
Installing for dependencies:container-selinux                noarch        2:2.119.2-1.911c772.el7_8        extras                   40 kcontainerd.io                    x86_64        1.4.6-3.1.el7                    docker-ce-stable         34 Mdocker-ce-cli                    x86_64        1:20.10.7-3.el7                  docker-ce-stable         33 Mdocker-ce-rootless-extras        x86_64        20.10.7-3.el7                    docker-ce-stable        9.2 Mdocker-scan-plugin               x86_64        0.8.0-3.el7                      docker-ce-stable        4.2 Mfuse-overlayfs                   x86_64        0.7.2-6.el7_8                    extras                   54 kfuse3-libs                       x86_64        3.6.1-4.el7                      extras                   82 kslirp4netns                      x86_64        0.4.3-4.el7_8                    extras                   81 kTransaction Summary
===============================================================================================================
Install  1 Package (+8 Dependent packages)Total download size: 107 M
Installed size: 438 M
Background downloading packages, then exiting:
(1/9): container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm                             |  40 kB  00:00:00
(2/9): docker-ce-20.10.7-3.el7.x86_64.rpm                                               |  27 MB  00:00:16
(3/9): containerd.io-1.4.6-3.1.el7.x86_64.rpm                                           |  34 MB  00:00:21
(4/9): docker-ce-rootless-extras-20.10.7-3.el7.x86_64.rpm                               | 9.2 MB  00:00:06
(5/9): fuse3-libs-3.6.1-4.el7.x86_64.rpm                                                |  82 kB  00:00:00
(6/9): slirp4netns-0.4.3-4.el7_8.x86_64.rpm                                             |  81 kB  00:00:00
(7/9): fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm                                          |  54 kB  00:00:01
(8/9): docker-scan-plugin-0.8.0-3.el7.x86_64.rpm                                        | 4.2 MB  00:00:02
(9/9): docker-ce-cli-20.10.7-3.el7.x86_64.rpm                                           |  33 MB  00:00:21
---------------------------------------------------------------------------------------------------------------
Total                                                                          2.8 MB/s | 107 MB  00:00:37
exiting because "Download Only" specified
[root@ccx ~]# cd /docker/
[root@ccx docker]# ls
containerd.io-1.4.6-3.1.el7.x86_64.rpm                docker-scan-plugin-0.8.0-3.el7.x86_64.rpm
container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm  fuse3-libs-3.6.1-4.el7.x86_64.rpm
docker-ce-20.10.7-3.el7.x86_64.rpm                    fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm
docker-ce-cli-20.10.7-3.el7.x86_64.rpm                slirp4netns-0.4.3-4.el7_8.x86_64.rpm
docker-ce-rootless-extras-20.10.7-3.el7.x86_64.rpm
[root@ccx docker]#
  • 载完毕以后就可以将这些包全部拷贝到需要离线安装的文件中了。
  • 如果服务器很多的话,可以写个批量拷贝文件的脚本,然后把下面安装离线包的命令放在后面,一并就解压了哦。

离线安装docker包

  • 方法很简单:在存放需要docker软件包的目录下,执行下面一行代码即可了
    rpm -ivhU * --nodeps --force

    • -ivhU:先安装并升级,这个U建议加上,因为有些命令安装是有升级的服务的,如果不加U就失败了【比如java】【如何确定哪些包有升级的包,直接在通外网的服务器上yum安装该服务,看过程即可】
    • - -nodeps --force:忽略软件包的依赖关系,忽略软件包及文件的冲突并强行安装
[root@ccx docker]# ls
containerd.io-1.4.6-3.1.el7.x86_64.rpm                docker-scan-plugin-0.8.0-3.el7.x86_64.rpm
container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm  fuse3-libs-3.6.1-4.el7.x86_64.rpm
docker-ce-20.10.7-3.el7.x86_64.rpm                    fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm
docker-ce-cli-20.10.7-3.el7.x86_64.rpm                slirp4netns-0.4.3-4.el7_8.x86_64.rpm
docker-ce-rootless-extras-20.10.7-3.el7.x86_64.rpm
[root@ccx docker]#
[root@ccx docker]# rpm -ivhU * --nodeps --force
Preparing...                          ################################# [100%]
Updating / installing...1:docker-scan-plugin-0:0.8.0-3.el7 ################################# [ 11%]2:docker-ce-cli-1:20.10.7-3.el7    ################################# [ 22%]3:container-selinux-2:2.119.2-1.911################################# [ 33%]4:containerd.io-1.4.6-3.1.el7      ################################# [ 44%]5:slirp4netns-0.4.3-4.el7_8        ################################# [ 56%]6:fuse3-libs-3.6.1-4.el7           ################################# [ 67%]7:fuse-overlayfs-0.7.2-6.el7_8     ################################# [ 78%]8:docker-ce-rootless-extras-0:20.10################################# [ 89%]9:docker-ce-3:20.10.7-3.el7        ################################# [100%]
[root@ccx docker]#
  • 启动docker:systemctl enable docker --now【加入开机自启并现在启动】
    能正常启动且能执行docker ps则 安装成够。
[root@ccx ~]# systemctl enable docker --now
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[root@ccx docker]# docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
[root@ccx docker]#

安装docker-compose

一、docker-compose简介

Compose 是用于定义和运行多容器 Docker 应用程序的工具。通过 Compose,您可以使用 YML 文件来配置应用程序需要的所有服务。然后,使用一个命令,就可以从 YML 文件配置中创建并启动所有服务。

二、安装docker-compose

内网环境【离线】

  • windows和macOS系统使用的Docker Desktop默认已经安装,我们这里主要介绍linux的安装,linux的安装docker-compose需要从GitHub上面进行下载,GitHub的docker-compose下载地址:compose下载
    linux一般下载这个
  • 更名下载的文件
  • 上传到linux并移动到下面目录
[root@ccx docker]# mv docker-compose /usr/local/bin/
  • 赋予权限并测试,有输出内容即为正常
[root@ccx docker]# chmod +x /usr/local/bin/docker-compose
[root@ccx docker]# docker-composeUsage:  docker compose [OPTIONS] COMMANDDocker ComposeOptions:--ansi string                Control when to print ANSI control characters ("never"|"always"|"auto") (default "auto")--compatibility              Run compose in backward compatibility mode--env-file string            Specify an alternate environment file.-f, --file stringArray           Compose configuration files--profile stringArray        Specify a profile to enable--project-directory string   Specify an alternate working directory(default: the path of the Compose file)-p, --project-name string        Project nameCommands:build       Build or rebuild servicesconvert     Converts the compose file to platform's canonical formatcp          Copy files/folders between a service container and the local filesystemcreate      Creates containers for a service.down        Stop and remove containers, networksevents      Receive real time events from containers.exec        Execute a command in a running container.images      List images used by the created containerskill        Force stop service containers.logs        View output from containersls          List running compose projectspause       Pause servicesport        Print the public port for a port binding.ps          List containerspull        Pull service imagespush        Push service imagesrestart     Restart containersrm          Removes stopped service containersrun         Run a one-off command on a service.start       Start servicesstop        Stop servicestop         Display the running processesunpause     Unpause servicesup          Create and start containersversion     Show the Docker Compose version informationRun 'docker compose COMMAND --help' for more information on a command.
[root@ccx docker]#

通外网环境

  • 1.下载docker-compose【有外网环境】
    使用以下命令进行下载,如图:
curl -L "https://github.com/docker/compose/releases/download/1.29.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

  • 2.运行docker-compose,提示权限不够

  • 3、添加权限
    运行以下命令,如图:

chmod +x /usr/local/bin/docker-compose

  • 4、运行docker-compose,如图:
docker-compose

  • 至此,docker-compose安装已经完成!

三、docker-compose常用命令

  • 1、查看配置命令:
docker-compose config
  • 2、后台启动:
docker-compose up -d
  • 3、构建镜像:
docker-compose bulid
  • 4、下载镜像:
docker-compose pull imagename
  • 5、查看运行的镜像:
docker-compose ps
  • 6、查看进程:
docker-compose top
  • 7、启动已存在的容器命令:
docker-compose start name
  • 8、停止正在运行的容器命令:
docker-compose stop
  • 9、查看服务日志输出:
docker-compose logs

内网环境脚本批量安装docker

  • 用户有一批虚拟机,全部需要安装docker和docker-compose
    所以我就弄成一个脚本咯,脚本是sh嵌入expect的,全程自动化完成连密码都不需要输入的哈,挺方便的。【IP有做更改】
    脚本内容不做解释,有看不懂的去我博客shell分类 中找博客来学习,这些用到的里面都有详细说明的。
# 脚本
[root@xz-qklxi-gs-01 ~]# cat docker.sh
#!/bin/bashfile=iplist.txt
cat $file|while read line
do
a=($line)
/usr/bin/expect<<EOF
#/usr/local/bin/expect<<EOF
set timeout 60
spawn ssh root@${a[0]}
expect {
"*yes/no" { send "yes\r"; exp_continue}
"*password:" { send "${a[1]}\r" }
}
expect "*]#" {send "mkdir /docker\r"}
expect "*]#" {send "scp root@11.12.13.1:/docker/* /docker\r"}
expect {"*yes/no" { send "yes\r"; exp_continue}#"*assword" {send "${a[1]}\r";} #"*assword" {send "XZ\(\&R!h\*X\*X\)Cloud1\(^^1\)\r";} "*assword" {send "XZxzqklxigsXZM\(\^\^\)01\r";}
}
expect "*]#" {send "cd /docker\r"}
expect "*]#" {send "mv docker-compose /usr/local/bin/\r"}
expect "*]#" {send "rpm -ivhU * --nodeps --force\r"}
expect "*]#" {send "chmod +x /usr/local/bin/docker-compose \r"}
expect "*]#" {send "systemctl start docker\r"}
expect "*]#" {send "docker ps\r"}
expect "*]#" {send "docker-compose\r"}
expect "*]#" {send "rm -rf /docker\r"}
expect "*]#" {send "history -c\r"}
expect "*]#" {send "echo ________________________\r"}
expect "*]#" {send "sleep 3\r"}
expect "*]#" {send "exit\r"}
expect eof
EOF
done
[root@xz-qklxi-gs-01 ~]# # ip存放
[root@xz-qklxi-gs-01 ~]# cat iplist.txt
11.12.13.1    XZxzqklxigsXZM(^^)01
11.12.13.11   XZxzqklxigsXZM(^^)02
11.12.13.6    XZxzqklxigsXZM(^^)03
11.12.13.14   XZxzqklxigsXZM(^^)04
11.12.13.9    XZxzqklxigsXZM(^^)05
11.12.13.8    XZxzqklxigsXZM(^^)06
11.12.13.21   XZxzqklxigsXZM(^^)07
11.12.13.10   XZxzqklxijylsXZ(^^)01
11.12.13.12   XZxzqklxijylsXZ(^^)02
11.12.13.24   XZxzqklxijylsXZ(^^)03
11.12.13.17   XZxzqklxidataport(^^)01
11.12.13.20   XZxzqklxidataport(^^)02
[root@xz-qklxi-gs-01 ~]#
  • 运行结果展示,放2个连续自动完成的【ip有更改】
spawn ssh root@11.12.13.17
The authenticity of host '11.12.13.17 (11.12.13.17)' can't be established.
ECDSA key fingerprint is SHA256:aUzTeNEzPthYwirONWy9inajPZHgTgsdzhobiVeBUVs.
ECDSA key fingerprint is MD5:9f:4c:6f:08:5b:01:6c:fc:77:e7:cd:76:2e:0a:ab:7b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '11.12.13.17' (ECDSA) to the list of known hosts.
root@11.12.13.17's password:
Last login: Mon Apr 11 08:39:31 2022 from 10.233.98.185
[root@xz-qklxi-dataport-01 ~]# mkdir /docker
[root@xz-qklxi-dataport-01 ~]# scp root@11.12.13.1:/docker/* /docker
The authenticity of host '11.12.13.1 (11.12.13.1)' can't be established.
ECDSA key fingerprint is SHA256:9zdFgyW5dnLr7FUzpOoWCfRlUzGgzv7Jya3sUZzyMcM.
ECDSA key fingerprint is MD5:a1:84:fb:82:b4:48:9f:81:82:75:f5:33:e1:f4:a5:c6.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '11.12.13.1' (ECDSA) to the list of known hosts.
root@11.12.13.1's password:
containerd.io-1.4.6-3.1.el7.x86_64.rpm                                                                                                                                                                    100%   34MB 101.2MB/s   00:00
container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm                                                                                                                                                      100%   40KB   7.3MB/s   00:00
docker-ce-20.10.7-3.el7.x86_64.rpm                                                                                                                                                                        100%   27MB 117.3MB/s   00:00
docker-ce-cli-20.10.7-3.el7.x86_64.rpm                                                                                                                                                                    100%   33MB 106.7MB/s   00:00
docker-ce-rootless-extras-20.10.7-3.el7.x86_64.rpm                                                                                                                                                        100% 9433KB  59.7MB/s   00:00
docker-compose                                                                                                                                                                                            100%   25MB  87.3MB/s   00:00
docker-scan-plugin-0.8.0-3.el7.x86_64.rpm                                                                                                                                                                 100% 4271KB  66.9MB/s   00:00
fuse3-libs-3.6.1-4.el7.x86_64.rpm                                                                                                                                                                         100%   82KB  13.7MB/s   00:00
fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm                                                                                                                                                                   100%   54KB  13.9MB/s   00:00
slirp4netns-0.4.3-4.el7_8.x86_64.rpm                                                                                                                                                                      100%   81KB  16.8MB/s   00:00
[root@xz-qklxi-dataport-01 ~]# cd /docker
[root@xz-qklxi-dataport-01 docker]# mv docker-compose /usr/local/bin/
[root@xz-qklxi-dataport-01 docker]# rpm -ivhU * --nodeps --force
warning: containerd.io-1.4.6-3.1.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
warning: container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...1:docker-scan-plugin-0:0.8.0-3.el7 ################################# [ 11%]2:docker-ce-cli-1:20.10.7-3.el7    ################################# [ 22%]3:container-selinux-2:2.119.2-1.911################################# [ 33%]
libsemanage.semanage_pipe_data: Child process /usr/libexec/selinux/hll/pp failed with code: 255. (No such file or directory).
container: libsepol.policydb_read: policydb module version 19 does not match my version range 4-17
container: libsepol.sepol_module_package_read: invalid module in module package (at section 0)
container: Failed to read policy package
libsemanage.semanage_direct_commit: Failed to compile hll files into cil files.(No such file or directory).
/usr/sbin/semodule:  Failed!
Error loading SELinux module.
/var/tmp/rpm-tmp.qNFUSk: line 12: return: can only `return' from a function or sourced script4:containerd.io-1.4.6-3.1.el7      ################################# [ 44%]5:slirp4netns-0.4.3-4.el7_8        ################################# [ 56%]6:fuse3-libs-3.6.1-4.el7           ################################# [ 67%]7:fuse-overlayfs-0.7.2-6.el7_8     ################################# [ 78%]8:docker-ce-rootless-extras-0:20.10################################# [ 89%]9:docker-ce-3:20.10.7-3.el7        ################################# [100%]
[root@xz-qklxi-dataport-01 docker]# chmod +x /usr/local/bin/docker-compose
[root@xz-qklxi-dataport-01 docker]# systemctl start docker
[root@xz-qklxi-dataport-01 docker]# docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
[root@xz-qklxi-dataport-01 docker]# docker-composeUsage:  docker compose [OPTIONS] COMMANDDocker ComposeOptions:--ansi string                Control when to print ANSI control characters ("never"|"always"|"auto") (default "auto")--compatibility              Run compose in backward compatibility mode--env-file string            Specify an alternate environment file.-f, --file stringArray           Compose configuration files--profile stringArray        Specify a profile to enable--project-directory string   Specify an alternate working directory(default: the path of the Compose file)-p, --project-name string        Project nameCommands:build       Build or rebuild servicesconvert     Converts the compose file to platform's canonical formatcp          Copy files/folders between a service container and the local filesystemcreate      Creates containers for a service.down        Stop and remove containers, networksevents      Receive real time events from containers.exec        Execute a command in a running container.images      List images used by the created containerskill        Force stop service containers.logs        View output from containersls          List running compose projectspause       Pause servicesport        Print the public port for a port binding.ps          List containerspull        Pull service imagespush        Push service imagesrestart     Restart containersrm          Removes stopped service containersrun         Run a one-off command on a service.start       Start servicesstop        Stop servicestop         Display the running processesunpause     Unpause servicesup          Create and start containersversion     Show the Docker Compose version informationRun 'docker compose COMMAND --help' for more information on a command.
[root@xz-qklxi-dataport-01 docker]# rm -rf /docker
[root@xz-qklxi-dataport-01 docker]# history -c
[root@xz-qklxi-dataport-01 docker]# echo ________________________
________________________
[root@xz-qklxi-dataport-01 docker]# sleep 3
[root@xz-qklxi-dataport-01 docker]# exit
logout
Connection to 11.12.13.17 closed.
spawn ssh root@11.12.13.20
The authenticity of host '11.12.13.20 (11.12.13.20)' can't be established.
ECDSA key fingerprint is SHA256:zGJJDJOOM7UkNGHo5wwpJF8YKKUmNxNiZfl2Axfk8ac.
ECDSA key fingerprint is MD5:ca:80:b8:3b:e7:0d:40:0d:f4:a4:43:91:18:97:81:ba.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '11.12.13.20' (ECDSA) to the list of known hosts.
root@11.12.13.20's password:
Last login: Tue Apr 12 01:53:17 2022 from 10.233.98.185
[root@ccx ~]# mkdir /docker
[root@ccx ~]# scp root@11.12.13.1:/docker/* /docker
The authenticity of host '11.12.13.1 (11.12.13.1)' can't be established.
ECDSA key fingerprint is SHA256:9zdFgyW5dnLr7FUzpOoWCfRlUzGgzv7Jya3sUZzyMcM.
ECDSA key fingerprint is MD5:a1:84:fb:82:b4:48:9f:81:82:75:f5:33:e1:f4:a5:c6.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '11.12.13.1' (ECDSA) to the list of known hosts.
root@11.12.13.1's password:
containerd.io-1.4.6-3.1.el7.x86_64.rpm                                                                                                                                                                    100%   34MB  78.5MB/s   00:00
container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm                                                                                                                                                      100%   40KB   8.5MB/s   00:00
docker-ce-20.10.7-3.el7.x86_64.rpm                                                                                                                                                                        100%   27MB 108.7MB/s   00:00
docker-ce-cli-20.10.7-3.el7.x86_64.rpm                                                                                                                                                                    100%   33MB  26.3MB/s   00:01
docker-ce-rootless-extras-20.10.7-3.el7.x86_64.rpm                                                                                                                                                        100% 9433KB   8.3MB/s   00:01
docker-compose                                                                                                                                                                                            100%   25MB  97.8MB/s   00:00
docker-scan-plugin-0.8.0-3.el7.x86_64.rpm                                                                                                                                                                 100% 4271KB  68.2MB/s   00:00
fuse3-libs-3.6.1-4.el7.x86_64.rpm                                                                                                                                                                         100%   82KB  15.4MB/s   00:00
fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm                                                                                                                                                                   100%   54KB  15.2MB/s   00:00
slirp4netns-0.4.3-4.el7_8.x86_64.rpm                                                                                                                                                                      100%   81KB  20.3MB/s   00:00
[root@ccx ~]# cd /docker
[root@ccx docker]# mv docker-compose /usr/local/bin/
[root@ccx docker]# rpm -ivhU * --nodeps --force
warning: containerd.io-1.4.6-3.1.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
warning: container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...1:docker-scan-plugin-0:0.8.0-3.el7 ################################# [ 11%]2:docker-ce-cli-1:20.10.7-3.el7    ################################# [ 22%]3:container-selinux-2:2.119.2-1.911################################# [ 33%]
libsemanage.semanage_pipe_data: Child process /usr/libexec/selinux/hll/pp failed with code: 255. (No such file or directory).
container: libsepol.policydb_read: policydb module version 19 does not match my version range 4-17
container: libsepol.sepol_module_package_read: invalid module in module package (at section 0)
container: Failed to read policy package
libsemanage.semanage_direct_commit: Failed to compile hll files into cil files.(No such file or directory).
/usr/sbin/semodule:  Failed!
Error loading SELinux module.
/var/tmp/rpm-tmp.8hUpYL: line 12: return: can only `return' from a function or sourced script4:containerd.io-1.4.6-3.1.el7      ################################# [ 44%]5:slirp4netns-0.4.3-4.el7_8        ################################# [ 56%]6:fuse3-libs-3.6.1-4.el7           ################################# [ 67%]7:fuse-overlayfs-0.7.2-6.el7_8     ################################# [ 78%]8:docker-ce-rootless-extras-0:20.10################################# [ 89%]9:docker-ce-3:20.10.7-3.el7        ################################# [100%]
[root@ccx docker]# chmod +x /usr/local/bin/docker-compose
[root@ccx docker]# systemctl start docker
[root@ccx docker]# docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
[root@ccx docker]# docker-composeUsage:  docker compose [OPTIONS] COMMANDDocker ComposeOptions:--ansi string                Control when to print ANSI control characters ("never"|"always"|"auto") (default "auto")--compatibility              Run compose in backward compatibility mode--env-file string            Specify an alternate environment file.-f, --file stringArray           Compose configuration files--profile stringArray        Specify a profile to enable--project-directory string   Specify an alternate working directory(default: the path of the Compose file)-p, --project-name string        Project nameCommands:build       Build or rebuild servicesconvert     Converts the compose file to platform's canonical formatcp          Copy files/folders between a service container and the local filesystemcreate      Creates containers for a service.down        Stop and remove containers, networksevents      Receive real time events from containers.exec        Execute a command in a running container.images      List images used by the created containerskill        Force stop service containers.logs        View output from containersls          List running compose projectspause       Pause servicesport        Print the public port for a port binding.ps          List containerspull        Pull service imagespush        Push service imagesrestart     Restart containersrm          Removes stopped service containersrun         Run a one-off command on a service.start       Start servicesstop        Stop servicestop         Display the running processesunpause     Unpause servicesup          Create and start containersversion     Show the Docker Compose version informationRun 'docker compose COMMAND --help' for more information on a command.
[root@ccx docker]# rm -rf /docker
[root@ccx docker]# history -c
[root@ccx docker]# echo ________________________
________________________
[root@ccx docker]# sleep 3
[root@ccx docker]# exit
logout
Connection to 11.12.13.20 closed.
[root@xz-qklxi-gs-01 ~]#

docker的离线安装方法和网络源安装方法、内网环境linux脚本批量安装docker、安装docker-compose相关推荐

  1. Centos/Red Hat6.8 安装、配置、启动Gitlab (内网环境)心得分享

    文章目录 一.Gitlab下载 1. Gitlab官网下载 二.分析思路 2.1. 分析 2.2. 代码托管平台 2.3. 镜像站 二.Gitlab 重新加载配置异常 2.1. 异常现象 2.2. 分 ...

  2. 内网环境下安装python包_内网环境中,如何快速的安装 py 的依赖包

    20 89 天前 能访问外网的机器: pip install wheel && pip wheel -r requirements.txt --wheel-dir=/svc/wheel ...

  3. 内网环境 linux 安装pip

    https://pypi.org/project/pip/#files 2.拷贝到内网linux 解压 tar -xzvf pip-1.9.2.2.tar.gzcd pip-1.9.2.2安装 pyt ...

  4. Centos/Red Hat6.8 安装、配置、启动Gitlab (内网环境)

    文章目录 一.软件和源准备 1. Gitlab下载 2. epel源下载 二.环境配置 2.1. 安装依赖项 2.2. 安装epel源 2.3. 安装Gitlab 三.Gitlab和防火墙配置 3.1 ...

  5. 内网环境下docker安装PMM 并监控 PG与MySQL

    0.前言 虽然PMM官网上安装指南上安装PMM有三种方式,但目前主流安装 还是以docker 的方式安装. PMM分两个版本:PMM1和PMM2,PMM1控制力度比较好一些,PMM2界面比较丰富友好一 ...

  6. linux gcc、gcc-c++离线(内网)环境安装 附rpm包~

    系统环境contos7 64位 最近在纯净版内网环境上部署项目,发现少了gcc编译环境,由于没有网络不能使用yum,所以只能通过rpm包方式安装,但是网上所有的gcc包都需要c币下载 也是走了不少弯路 ...

  7. 内网环境 CentOS7 搭建本地repo仓库源

    参考资料:Downloading RPM Packages with dependencies [ yumdownloader Vs yum-downloadonly Vs repoquery] 通过 ...

  8. linux 内网yum,Linux下 内网环境 通过ISO yum安装依赖

    Linux下 内网环境 通过ISO yum安装依赖 上传系统系统镜像 创建镜像挂载点 mkdir iso 将系统镜像挂载到 /iso 挂载点上 [root@localhost home]# mount ...

  9. Rasa 3.x 学习系列- 内网环境部署Docker及Rasa duckling、Redis

    Rasa 3.x 学习系列- 内网环境部署Docker及Rasa duckling.Redis 在单位内网 centos 7.9 Linux 环境里面安装Docker及Rasa duckling.Re ...

  10. 离线/内网环境下搭建vue开发环境

    系列文章目录 第一讲 离线/内网环境下搭建vue开发环境 第二讲 内网环境运行maven项目 目录 外网环境搭建 一.安装nodeJS 二.安装vue依赖包 内网环境正式开始 准备工作: 一.安装no ...

最新文章

  1. numpy nonzero 找出非0元素
  2. java 面试问jdk版本_面试常被问到的 JDK 命令,你知道几个?
  3. UVa OJ 120
  4. java InputStream的使用
  5. C++ Applications
  6. 【maven3学习之一】window7下maven环境搭建
  7. Apollo进阶课程㊱丨Apollo ROS深入介绍
  8. 63万张!旷视发布最大物体检测数据集Objects365,物体检测竞赛登陆CVPR
  9. 百度直达号选错了对手 阿里腾讯还太嫩 干掉美团更直接
  10. PLC编程全科班+人机界面编程+电机+变频器通信培训
  11. 完整版第四方Oreo易支付源码+28K易支付源码
  12. SOFTICE 初使用
  13. 六大行业动向,给2021年新能源汽车行业画下句点
  14. 云脉档案管理彻底解决纸质数据问题
  15. 中文拼音转换成CMU的音素工具
  16. 以太网芯片MAC和PHY
  17. pressOn在线制作流程图、思维导图、架构图等
  18. 更新资产折旧价值或AW01N查看资产价值提示消息:消息号AU390 - AS02 / AFAR
  19. python中 math模块下 atan 和 atan2的区别
  20. ip_forward与路由转发

热门文章

  1. 主成分分析(PCA)与线性判别分析(LDA)的区别与联系
  2. 类和对象的关系练习题:需求:将汽车改装成3个轮子的车并换个颜色。
  3. Arduino /*传感器使用指南
  4. CRT、CER、PEM、DER编码、JKS、KeyStore等格式证书说明及转换
  5. python算术平方根_Python 平方根
  6. POI导出Excel设置单元格格式
  7. 金蝶K3即时库存成本计算逻辑是什么?
  8. word批量修改图片的大小
  9. Window 错误代码大全
  10. html input文字缩进,使用HTML Tidy来缩进HTML代码?