/docker_python-ansible

A Docker container includes ansible and pyvmomi

Primary LanguageDockerfile

Ansible on Docker

A simple docker container includes ansible and pyvmomi.
This can be useful for administrating VMware platform by ansible.

Requiremt:

  • Docker Desktop
  • working directories below are included in docker-compose.yml. Please modify if needed(or create symbolic link :)
    • ~/code
    • ~/.ssh

Usage

  • to build container and execute bash in the container
docker compose up -d --build
docker exec -it py-ansible bash
  • to stop & delete container
docker stop py-ansible
docker rm  py-ansible

OR 

docker compose down

File Structure

.
├── Dockerfile
├── READMD.md
└── docker-compose.yml