Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
OK
Note

The apt-key command is scheduled to be deprecated. The abolishment date has not yet been determined, but please consider alternative methods on your own.

Info

Use -x option if you need a proxy server to connect to the Internet.

(Change URL and port number for the proxy server according to the proxy server you are using.)

$ curl -x http://proxy.example.com:8080/ -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

...