--add-host -- Add a custom host-to-IP mapping --attach -a -- Attach to STDIN, STDOUT or STDERR --cap-add -- Add Linux capabilities --cap-drop -- Drop Linux capabilities --cidfile -- Write the container ID to the file --cpu-shares -c -- CPU shares (relative weight) --cpuset-cpus -- CPUs in which to allow execution (0-3, 0,1) --detach -d -- Run container in the background, print new container id --device -- Add a host device to the container --dns -- Set custom dns servers --dns-search -- Set custom DNS search domains --entrypoint -- Overwrite the default entrypoint of the image --env -e -- Set environment variables --env-file -- Read in a file of environment variables --expose -- Expose a port from the container without publishing it to your host --hostname -h -- Container host name --interactive -i -- Keep STDIN open even if not attached --ipc -- IPC namespace to use --label -l -- Set meta data on a container --link -- Add link to another container (name:alias) --log-driver -- Logging driver for the container --lxc-conf -- Add custom LXC options --mac-address -- Container MAC address (e.g. 92:d0:c6:0a:29:33) --memory -m -- Memory limit (format: <number><optional unit>, where unit = b, k, m or g) --name -- Assign a name to the container --net -- Set the Network mode for the container --pid -- PID namespace to use --privileged -- Give extended privileges to this container --publish -p -- Publish a containers port to the host (format: ip:hostPort:containerPort/protocol) --publish-all -P -- Publish all exposed ports to the host interfaces --restart -- Restart policy to apply when a container exits --rm -- Automatically remove the container when it exits (incompatible with -d) --security-opt -- Security Options --sig-proxy -- Proxify all received signal to the process (even in non-tty mode) --tty -t -- Allocate a pseudo-tty --ulimit -- Ulimit options --user -u -- Username or UID --volume -v -- Bind mount a volume (e.g. -v /host:/container or -v /container) --volumes-from -- Mount volumes from the specified container(s) --workdir -w -- Working directory inside the container
apt-get update apt-get install vim vim /etc/apt/sources.list
然后填入163的源。
1 2 3 4 5 6 7 8 9 10 11
#163 deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse