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