How do i install docker on the command line?
-
Note: Ensure the content of the script matches the version on GitHub before executing the script. https://github.com/docker/docker-install
Above note, is what is says in the script comments.
This is for demo purposes, As you are aware in production everything is a lot more tightly controlled and managed.
To install using the docker using the docker script.
$ curl -fsSL https://get.docker.com -o get-docker.sh $ sh get-docker.sh
If docker is already install it will show a message similar to this:
curl -sSL https://get.docker.com | sh # Executing docker install script, commit: 4957679 Warning: the "docker" command appears to already exist on this system. If you already have Docker installed, this script can cause trouble, which is why we're displaying this warning and provide the opportunity to cancel the installation. If you installed the current Docker package using this script and are using it again to update Docker, you can safely ignore this message. You may press Ctrl+C now to abort this script. + sleep 20
© Lightnetics 2024