Docker: Running your first container!
Introduction In our last post, we explained how to install docker on a Centos 7 system. In this post, we will demonstrate how to launch and run our first container named hello-world. Before we launch our container let’s verify the version of Docker installed on the system and ensure that the docker container engine service is started. [sahil@linuxnix ~]$ docker version Client: Version: 18.09.7 API version: 1.39 Go version: go1.10.8 Git commit: 2d0083d Built: Thu Jun 27 17:56:06 2019 OS/Arch: linux/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 18.09.7 API version: 1.39 (minimum version 1.12) Go version: go1.10.8 Git commit: 2d0083d Built: Thu Jun 27 17:26:28 2019 OS/Arch: linux/amd64 Experimental: false [sahil@linuxnix ~]$ [sahil@linuxnix ~]$ sudo systemctl enable docker Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service. [sahil@linuxnix ~]$ sudo systemctl start docker [sahil@linuxnix ~]$ [sahil@linuxnix ~]$ sudo systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2019-07-07 16:15:42 UTC; 6s ago Docs: https://docs.docker.com Main PID: 8756 (dockerd) Tasks: 8 Memory: 32.1M CGroup: /system.slice/docker.service └─8756 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock Jul 07 16:15:42 linuxnix dockerd[8756]: time="2019-07-07T16:15:42.169081427Z" level=info msg="Successfully created filesystem xfs on device doc...icemapper Jul 07 16:15:42 linuxnix dockerd[8756]: time="2019-07-07T16:15:42.196379146Z" level=warning msg="[graphdriver] WARNING: the devicemapper storag... release" Jul 07 16:15:42 linuxnix dockerd[8756]: time="2019-07-07T16:15:42.235077254Z" level=info msg="Graph migration to content-addressability took 0.00 seconds" Jul 07 16:15:42 linuxnix dockerd[8756]: time="2019-07-07T16:15:42.236148156Z"...
Read More