0
我创造了我的第一个Dockerfile运行,但是当我运行泊坞窗图像惯于在后台
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