Metasploitable 3 has a linux and a windows part. The docker command below contains only the ubuntu part.
docker pull edurange2/metasploitable3
sudo docker create --name meta3 -it edurange2/metasploitable3
sudo docker start meta3
sudo docker exec -it meta3 /bin/bash