Problem scenario
You want to deploy Apache Tomcat in a Docker container on an AWS instance of Ubuntu Linux. How do you do this?
Solution
1. Install Docker. See this link if you need assistance.
2. Start the Docker service with this command: sudo service docker start
3. Run these two commands:
docker pull consol/tomcat-8.0
docker run consol/tomcat-8.0
4.
…