I want to use docker and docker-compose on wsl to setup a handful of debian images, each with their own IP.
I did:
- docker pull debian (got the latest debian)
- docker run --name container1 -it debian
- ran some apt update and install’s
- exited
From here I want to
- configure networking so the container has some static IP
- create a user and get a shell as that user
- copy some files in
- save/push the image to my docker hub
- setup several containers to load from this image
is there a tl;dr somewhere. Perhaps a kind soul here that can offer up the magic commands?
Cheers!