Posts

Installing Docker and creating Docker image in Ubuntu [AWS EC2]

Image
This article demonstrates installing and using Docker on AWS UBUNTU server.  Installing Docker The Docker installation package available in the official Ubuntu 16.04 repository may not be the latest version. To get the latest and greatest version, install Docker from the official Docker repository.  This section shows you how to do just that. 1. First, add the GPG key for the official Docker repository to the system: 2. Add the Docker repository to APT sources: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" 3. Installing docker and related packages  update the package database with the Docker packages from the newly added repo: $ sudo apt-get update Make sure you are about to install from the Docker repo instead of the default Ubuntu repo: $apt-cache policy docker-ce  Install Docker:  $ sudo apt-get install -y docker-ce   Start Docker Service:...