Whenever I try docker-compose up -d
, my container exits with code 0
.
I have following docker-compose.yml
:
version: "3"
services:
ansible:
container_name: controller
image: centos_ansible
build:
context: centos_ansible
networks:
- net
networks:
net:
The Dockerfile inside centos_ansible
:
FROM centos
RUN yum install python3 -y && \
yum install epel-release -y && \
yum install ansible -y