run the container docker container run -d -P --name nop nop:1.0
now inspect the container and find ip address docker container inspect nop
lets create a nopdb volume docker volume create nopdb
Now lets create the mysql container with username nop password nop12345 database nop and root password nop12345 with /var/lib/mysql attached to nopdb volume