tee /etc/apt/sources.list <<EOF
deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
EOF
root@limingtest-1:~/html# docker run -ti --rm ylm/nginx:v1.12.2 bash
root@227dac1b3400:/# curl
bash: curl: command not found
root@227dac1b3400:/# tee /etc/apt/sources.list <<EOF
deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
EOF
deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
root@227dac1b3400:/# apt-get update && apt-get install curl -y
tee /etc/apt/sources.list <<EOFdeb http://mirrors.163.com/debian/ jessie main non-free contribdeb http://mirrors.163.com/debian/ jessie-updates main non-free contribEOFroot@limingtest-1:~/html# docker run --rm -e E_OPTS=abcdefg ylm/nginx:v1.12.2