zm@R7000K:/root$ curl https://gitee.com/niziming/general_linux_tools/raw/master/install/get-docker.sh #!/bin/sh set -e # Docker Engine for Linux installation script. # # This script is intended as a convenient way to configure docker's package # repositories and to install Docker Engine, This script is not recommended #for production environments. Before running this script, make yourself familiar # with potential risks and limitations, and refer to the installation manual # at https://docs.docker.com/engine/install/ for alternative installation methods. # # The script: # # - Requires `root` or `sudo` privileges to run. # - Attempts to detect your Linux distribution and version and configure your # package management system for you. # - Doesn't allow you to customize most installation parameters. # - Installs dependencies and recommendations without asking for confirmation. # - Installs the latest stable release (by default) of Docker CLI, Docker Engine, # Docker Buildx, Docker Compose, containerd, and runc. When using this script # to provision a machine, this may result in unexpected major version upgrades # of these packages. Always test upgrades in a test environment before # deploying to your production systems. # - Isn't designed to upgrade an existing Docker installation. When using the # script to update an existing installation, dependencies may not be updated # to the expected version, resulting in outdated versions. # # Source code is available at https://github.com/docker/docker-install/ # # Usage # ==============================================================================
保存访问的网页
使用linux的重定向功能保存
curl URL >> filename.html
1 2 3 4 5 6 7 8 9 10
zm@R7000K:/root$ sudo su [sudo] password for zm: root@R7000K:~# curl -fsSL https://gitee.com/niziming/general_linux_tools/raw/master/install/get-docker.sh -o get-docker.sh >> /home/get-docker.sh root@R7000K:~# cd /home/ root@R7000K:/home# ll total 12 drwxr-xr-x 3 root root 4096 Dec 28 12:48 ./ drwxr-xr-x 19 root root 4096 Dec 28 11:38 ../ -rw-r--r-- 1 root root 0 Dec 28 12:48 get-docker.sh drwxr-x--- 2 zm zm 4096 Dec 28 11:58 zm/