I would like to create a bash file to automate a docker installation with following commands:
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys <key> echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list sudo apt-get update apt-cache policy docker-engine sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual sudo apt-get install docker-engine sudo service docker start
For me it is new, so I need a little advice. How can I handle commands which asks for confirmations?
Can I summarize both
apt-get install lines?