get-docker.com installation script¶
The installation script available at get.docker.com is a utility for setting up the Docker engine.^[400-devops-03-containerization-windowsubuntuinstalldocker.md]
Procedure¶
To use the script, it must first be downloaded using curl, which includes options to suppress progress and errors (-fsSL), and saved to a file (e.g., get-docker.sh).^[400-devops-03-containerization-windowsubuntuinstalldocker.md] The script is then executed with sudo privileges, typically via the sh command.^[400-devops-03-containerization-windowsubuntuinstalldocker.md] Following the installation, the Docker service can be managed using standard service control commands to start or stop the daemon.^[400-devops-03-containerization-windowsubuntuinstalldocker.md]
Usage¶
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
$ sudo service docker start
$ sudo service docker stop
Related Concepts¶
- [[Docker]]
- [[Shell scripting]]
- DevOps
Sources¶
- 400-devops-03-containerization-windowsubuntuinstalldocker.md