я создал свой первый Dockerfile, но когда я запускаю командуDocker изображения обыкновение работать в фоновом режиме
sudo docker ps
Контейнер не работает в фоновом режиме, вот мой dockerfile:
# Set the base image to Ubuntu
FROM debian:jessie
# File Author/Maintainer
MAINTAINER <Qop>
# Update the repository sources list
RUN apt-get update
################## BEGIN INSTALLATION ######################
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y \
vim \
apache2
##################### INSTALLATION END #####################
# Expose the default port
EXPOSE 81
# Default port to execute the entrypoint (MongoDB)
CMD ["--port 81"]
# Set default container command
ENTRYPOINT /bin/bash
Спасибо, это имеет большой смысл! – Qop