kali install docker

Preparation

Add Docker PGP key:

curl -fsSLhttps://download.docker.com/linux/debian/gpg | sudo apt-key add -

Configure Docker APT repository:

echo 'debhttps://download.docker.com/linux/debianstretch stable' > /etc/apt/sources.list.d/docker.list

Update APT:

apt-get update

Install Docker

If you had older versions of Docker installed, uninstall them:

apt-get remove docker docker-engine docker.io

Install Docker:

apt-get install docker-ce

Test:

docker run hello-world

After

installation, Docker service will be started, but not enabled (i.e. it

will not be started automatically after reboot). To start it:

systemctl start docker

To start Docker automatically upon reboot (do it on your own risk!):

systemctl enable docker

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容