Docker-2: Dockerfile And Volume

Dockerfile Create a Dockerfile in one folder with name "Dockerfile" Edit this file with below contents: FROM alpine:latest MAINTAINER Chuantao CMD echo "Hello Docker!" Run this command to build a new docker image locally: docker build -t hello-docker . -t: Name and optionally a tag in the ‘name:tag’ format. So above command will create a docker ... [Read more/更多...]

Docker-1: Installation and basic operations

Docker memo This memo contains the following items: Docker installation from Repository Post operation after docker installation Basic docker operation commands Docker installation from Repository in Ubuntu 18.04 LTS There are several ways to install docker. I followed its official one here: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository Install using the repository Before you install Docker CE for the first ... [Read more/更多...]