I created two docker containers of which one was of network type none and the other was of type bridge. I mapped their ports with that of host port using the following command during the creation of the docker containers.
docker run -p host_port:container_port image
The none type coontainers were added to a network using pipework and hence the none type containers also have IP addresses and can connect to the external networks.
I tried accessing the container port using netcat, but I couldn't access the port of the container which is of type none. Using the command "docker port container_name" I couldn't see the port in the none type container but I could see the mapped port of the bridge type container.
Netcat commands which I used were:
nc -l localhost host_port ----->in the host
nc localhost container_port ----->in the container
and vice versa.