For Ansible practice, I wrote this because I wanted an image that can be entered by SSH.
$ docker build -t docker_ssh:latest .
$ docker run -d -p 2222:22 docker_ssh:latest
$ ssh -p 2222 kabigon@localhost
For Ansible practice, I wrote this because I wanted an image that can be entered by SSH.
$ docker build -t docker_ssh:latest .
$ docker run -d -p 2222:22 docker_ssh:latest
$ ssh -p 2222 kabigon@localhost