Exploring Authnet

Let's explore what we just created:

$ docker network inspect authnet  

This prints out a large JSON object describing the network, and its attached containers, which we've looked at before. If all went well, we'll see there are now two containers attached to authnet where there'd previously been only one.

Let's go into the userauth container and poke around:

$ docker exec -it userauth bashroot@a29d833287bf:/userauth# ls node_modules                 user-server.mjs  users-list.js package-lock.json            users-add.js     users-sequelize.mjs package.json                 users-delete.js sequelize-docker-mysql.yaml  users-find.js

The /userauth directory is inside the container and is exactly the files placed in the container using the COPY command, plus the installed files ...

Get Node.js Web Development - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.