I tried to create my own container based on Ubuntu (and the same with Debian). I use docker-compose
to manage my containers and I use dockerfile
to create my container.
When I use the docker-compose
to create and start my container, I always had a status Exited 0
(without information in logs or on my screen and when I create and start with a simple docker command, it works well.
Do you have an idea why ?
My dockerfile
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y sqlite3 libsqlite3-dev apache2 php php-sqlite3
RUN /usr/bin/sqlite3 /etc/apache2/db/test.db
RUN apt-get clean autoclean
RUN apt-get autoremove --yes
RUN rm -rf /var/lib/apt/lists/*
CMD /bin/bash
My docker-compose
bdd:
container_name: bdd
build: /docker/bdd
image: image_bdd:latest