对于多个用户来说这是否正确

对于多个用户来说这是否正确
This is docker related, very much in Ubuntu Linux, 
this is my **Dockerfile**: 

FROM       ubuntu:16.04
MAINTAINER root

# Installation:
RUN apt-get update && apt-get install -y build-essential python3.7
RUN apt-get install -y python-setuptools
RUN apt-get install -y python-pip
RUN apt-get install -y nano
RUN apt-get install -y telnet
RUN apt-get install -y vim

# Import MongoDB public GPG key AND create a MongoDB list file
RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv 7F0CEB10
RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/10gen.list

# Update apt-get sources AND install MongoDB
RUN apt-get update && apt-get install -y mongodb-org

# Create the MongoDB data directory
RUN mkdir -p /data/db

# Create the MongoDB data directory
RUN mkdir -p /data/code

RUN pip install pymongo

# Expose port #27017 from the container to the host
EXPOSE 27017

USER root 
WORKDIR /home/my_container

# Set /usr/bin/mongod as the dockerized entry-point application
ENTRYPOINT ["/bin/bash"]

尝试为 Linux 上的每个用户创建 Docker 容器,以便他们可以运行自己的虚拟环境。这是正确的吗?

相关内容