How to Download ("Clone") the Kali Linux Docker file:

https://www.kali.org/docs/containers/using-kali-docker-images/

 

docker pull kalilinux/kali-rolling

docker run --tty --interactive kalilinux/kali-rolling /bin/bash

apt update
apt dist-upgrade
apt autoremove
apt clean

Use this guide to setup Kali Linux CLI in a Docker:

https://airman604.medium.com/kali-linux-in-a-docker-container-5a06311624eb