Install libnss-docker by entering the following commands in the terminal:
sudo apt update sudo apt install libnss-docker
Description:
nss module for finding Docker containers
This package contains a plugin for the Name Service Switch, providing host name resolution for Docker containers.
Homepage: https://github.com/dex4er/nss-docker
Version: 0.02-1
Section: universe/admin