docker操作记录ubu-16.04
[BEGIN] 2019/12/4 13:56:06
Connecting to 192.168.114.130:22...
Connection established.
To escape to local shell, press Ctrl+Alt+].
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-70-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
* Overheard at KubeCon: "microk8s.status just blew my mind".
https://microk8s.io/docs/commands#microk8s.status
3 个可升级软件包。
0 个安全更新。
New release '18.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
*** 需要重启系统 ***
Last login: Wed Dec 4 13:20:35 2019 from 192.168.114.1
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-70-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
* Overheard at KubeCon: "microk8s.status just blew my mind".
https://microk8s.io/docs/commands#microk8s.status
3 个可升级软件包。
0 个安全更新。
New release '18.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
*** 需要重启系统 ***
Last login: Wed Dec 4 13:20:35 2019 from 192.168.114.1
root@coder:~# whoami
root
root@coder:~# ls
root@coder:~#
root@coder:~#
root@coder:~# su - coder
-->@coder:~$ ls
code examples.desktop 公共的 模板 视频 图片 文档 下载 音乐 桌面
-->@coder:~$
-->@coder:~$
-->@coder:~$ pwd
/home/coder
-->@coder:~$ cd ..
-->@coder:/home$ ls
coder
-->@coder:/home$ cd coder
-->@coder:~$ ls
code examples.desktop 公共的 模板 视频 图片 文档 下载 音乐 桌面
-->@coder:~$ mkdir myninx
-->@coder:~$ cd myninx/
-->@coder:~/myninx$ ls
-->@coder:~/myninx$ touch Dockerfile
-->@coder:~/myninx$ ls
Dockerfile
-->@coder:~/myninx$ FROM nginx
FROM:未找到命令
-->@coder:~/myninx$ ls
Dockerfile
-->@coder:~/myninx$
-->@coder:~/myninx$ vim Dockerfile
1
1 FROM nginx
1 FROM nginx
2 RUN echo ' hello, Docker1' > /usr/share/nginx/html/index.html
~
~
~
~
~
~
"Dockerfile" 2L, 81C 已写入
-->@coder:~/myninx$ docker search redis
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/search?limit=25&term=redis: dial unix /var/run/docker.sock: connect: permission denied
-->@coder:~/myninx$ sudo docker search redis
[sudo] coder 的密码:
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
redis Redis is an open source key-value store that… 7587 [OK]
bitnami/redis Bitnami Redis Docker Image 133 [OK]
sameersbn/redis 78 [OK]
grokzen/redis-cluster Redis cluster 3.0, 3.2, 4.0 & 5.0 62
rediscommander/redis-commander Alpine image for redis-commander - Redis man… 32 [OK]
kubeguide/redis-master redis-master with "Hello World!" 31
redislabs/redis Clustered in-memory database engine compatib… 24
arm32v7/redis Redis is an open source key-value store that… 20
oliver006/redis_exporter Prometheus Exporter for Redis Metrics. Supp… 18
redislabs/redisearch Redis With the RedisSearch module pre-loaded… 17
webhippie/redis Docker images for Redis 10 [OK]
s7anley/redis-sentinel-docker Redis Sentinel 9 [OK]
insready/redis-stat Docker image for the real-time Redis monitor… 9 [OK]
bitnami/redis-sentinel Bitnami Docker Image for Redis Sentinel 8 [OK]
redislabs/redisgraph A graph database module for Redis 8 [OK]
arm64v8/redis Redis is an open source key-value store that… 6
redislabs/redismod An automated build of redismod - latest Redi… 5 [OK]
centos/redis-32-centos7 Redis in-memory data structure store, used a… 4
circleci/redis CircleCI images for Redis 2 [OK]
frodenas/redis A Docker Image for Redis 2 [OK]
runnable/redis-stunnel stunnel to redis provided by linking contain… 1 [OK]
tiredofit/redis Redis Server w/ Zabbix monitoring and S6 Ove… 1 [OK]
wodby/redis Redis container image with orchestration 1 [OK]
xetamus/redis-resource forked redis-resource 0 [OK]
cflondonservices/redis Docker image for running redis 0
-->@coder:~/myninx$ sudo docker search mysql
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
mysql MySQL is a widely used, open-source relation… 8891 [OK]
mariadb MariaDB is a community-developed fork of MyS… 3126 [OK]
mysql/mysql-server Optimized MySQL Server Docker images. Create… 657 [OK]
centos/mysql-57-centos7 MySQL 5.7 SQL database server 64
centurylink/mysql Image containing mysql. Optimized to be link… 61 [OK]
mysql/mysql-cluster Experimental MySQL Cluster Docker images. Cr… 58
deitch/mysql-backup REPLACED! Please use http://hub.docker.com/r… 41 [OK]
bitnami/mysql Bitnami MySQL Docker Image 35 [OK]
tutum/mysql Base docker image to run a MySQL database se… 34
schickling/mysql-backup-s3 Backup MySQL to S3 (supports periodic backup… 28 [OK]
prom/mysqld-exporter 23 [OK]
linuxserver/mysql A Mysql container, brought to you by LinuxSe… 22
centos/mysql-56-centos7 MySQL 5.6 SQL database server 17
circleci/mysql MySQL is a widely used, open-source relation… 16
mysql/mysql-router MySQL Router provides transparent routing be… 14
arey/mysql-client Run a MySQL client from a docker container 12 [OK]
openshift/mysql-55-centos7 DEPRECATED: A Centos7 based MySQL v5.5 image… 6
yloeffler/mysql-backup This image runs mysqldump to backup data usi… 6 [OK]
fradelg/mysql-cron-backup MySQL/MariaDB database backup using cron tas… 4 [OK]
genschsa/mysql-employees MySQL Employee Sample Database 3 [OK]
devilbox/mysql Retagged MySQL, MariaDB and PerconaDB offici… 2
ansibleplaybookbundle/mysql-apb An APB which deploys RHSCL MySQL 2 [OK]
jelastic/mysql An image of the MySQL database server mainta… 1
monasca/mysql-init A minimal decoupled init container for mysql 0
widdpim/mysql-client Dockerized MySQL Client (5.7) including Curl… 0 [OK]
-->@coder:~/myninx$ sudo docker search httpd
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
httpd The Apache HTTP Server Project 2760 [OK]
centos/httpd-24-centos7 Platform for running Apache httpd 2.4 or bui… 26
centos/httpd 26 [OK]
armhf/httpd The Apache HTTP Server Project 8
salim1983hoop/httpd24 Dockerfile running apache config 2 [OK]
dariko/httpd-rproxy-ldap Apache httpd reverse proxy with LDAP authent… 1 [OK]
solsson/httpd-openidc mod_auth_openidc on official httpd image, ve… 1 [OK]
lead4good/httpd-fpm httpd server which connects via fcgi proxy h… 1 [OK]
manasip/httpd 0
itsziget/httpd24 Extended HTTPD Docker image based on the off… 0 [OK]
dockerpinata/httpd 0
interlutions/httpd httpd docker image with debian-based config … 0 [OK]
manageiq/httpd_configmap_generator Httpd Configmap Generator 0 [OK]
appertly/httpd Customized Apache HTTPD that uses a PHP-FPM … 0 [OK]
izdock/httpd Production ready Apache HTTPD Web Server + m… 0
trollin/httpd 0
amd64/httpd The Apache HTTP Server Project 0
publici/httpd httpd:latest 0 [OK]
e2eteam/httpd 0
buzzardev/httpd Based on the official httpd image 0 [OK]
manageiq/httpd Container with httpd, built on CentOS for Ma… 0 [OK]
ppc64le/httpd The Apache HTTP Server Project 0
alvistack/httpd Docker Image Packaging for Apache 0 [OK]
hypoport/httpd-cgi httpd-cgi 0 [OK]
tugboatqa/httpd The Apache HTTP Server Project 0
-->@coder:~/myninx$ sudo docker search php
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
php While designed for web development, the PHP … 4910 [OK]
phpmyadmin/phpmyadmin A web interface for MySQL and MariaDB. 900 [OK]
php-zendserver Zend Server - the integrated PHP application… 173 [OK]
webdevops/php-nginx Nginx with PHP-FPM 144 [OK]
webdevops/php-apache-dev PHP with Apache for Development (eg. with xd… 114 [OK]
webdevops/php-apache Apache with PHP-FPM (based on webdevops/php) 96 [OK]
bitnami/php-fpm Bitnami PHP-FPM Docker Image 82 [OK]
phpunit/phpunit PHPUnit is a programmer-oriented testing fra… 74 [OK]
nazarpc/phpmyadmin phpMyAdmin as Docker container, based on off… 60 [OK]
thecodingmachine/php General-purpose ultra-configurable PHP images 26 [OK]
circleci/php CircleCI images for PHP 25
phpdockerio/php72-fpm PHP 7.2 FPM base container for PHPDocker.io. 18 [OK]
adrianharabula/php7-with-oci8 Latest PHP 7.1 with apache and Oracle oci8 18 [OK]
bitnami/phpmyadmin Bitnami Docker Image for phpMyAdmin 15 [OK]
phpdockerio/php7-fpm PHP 7 FPM base container for PHPDocker.io. 14 [OK]
devilbox/php-fpm PHP-FPM Docker images based on original PHP … 14
graze/php-alpine Smallish php7 alpine image with some common … 12 [OK]
phpdockerio/php56-fpm PHP 5.6 FPM base container for PHPDocker.io 10 [OK]
appsvc/php Azure App Service php dockerfiles 10 [OK]
phpdockerio/php71-fpm PHP 7.1 FPM base container for PHPDocker.io. 7 [OK]
phpdockerio/php72-cli PHP 7.2 CLI base container for PHPDocker.io. 4 [OK]
phpdockerio/php7-cli PHP 7 CLI base container image for PHPDocker… 1 [OK]
phpdockerio/php71-cli PHP 7.1 CLI base container for PHPDocker.io. 1 [OK]
phpdockerio/php56-cli PHP 5.6 CLI base container for PHPDocker.io … 1 [OK]
isotopab/php Docker PHP 0 [OK]
-->@coder:~/myninx$ sudo docker search tomcat
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
tomcat Apache Tomcat is an open source implementati… 2574 [OK]
tomee Apache TomEE is an all-Apache Java EE certif… 71 [OK]
dordoka/tomcat Ubuntu 14.04, Oracle JDK 8 and Tomcat 8 base… 53 [OK]
bitnami/tomcat Bitnami Tomcat Docker Image 30 [OK]
kubeguide/tomcat-app Tomcat image for Chapter 1 28
consol/tomcat-7.0 Tomcat 7.0.57, 8080, "admin/admin" 16 [OK]
cloudesire/tomcat Tomcat server, 6/7/8 15 [OK]
aallam/tomcat-mysql Debian, Oracle JDK, Tomcat & MySQL 12 [OK]
tutum/tomcat Base docker image to run a Tomcat applicatio… 11
arm32v7/tomcat Apache Tomcat is an open source implementati… 10
rightctrl/tomcat CentOS , Oracle Java, tomcat application ssl… 5 [OK]
maluuba/tomcat7-java8 Tomcat7 with java8. 4
arm64v8/tomcat Apache Tomcat is an open source implementati… 2
amd64/tomcat Apache Tomcat is an open source implementati… 2
oobsri/tomcat8 Testing CI Jobs with different names. 1
camptocamp/tomcat-logback Docker image for tomcat with logback integra… 1 [OK]
i386/tomcat Apache Tomcat is an open source implementati… 1
99taxis/tomcat7 Tomcat7 1 [OK]
ppc64le/tomcat Apache Tomcat is an open source implementati… 1
secoresearch/tomcat-varnish Tomcat and Varnish 5.0 0 [OK]
picoded/tomcat7 tomcat7 with jre8 and MANAGER_USER / MANAGER… 0 [OK]
s390x/tomcat Apache Tomcat is an open source implementati… 0
jelastic/tomcat An image of the Tomcat Java application serv… 0
appsvc/tomcat 0
cfje/tomcat-resource Tomcat Concourse Resource 0
-->@coder:~/myninx$ sudo docker search node
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
node Node.js is a JavaScript-based platform for s… 8147 [OK]
mongo-express Web-based MongoDB admin interface, written w… 563 [OK]
nodered/node-red-docker Deprecated - older Node-RED Docker images. 342 [OK]
selenium/node-chrome 201 [OK]
prom/node-exporter 158 [OK]
selenium/node-firefox 128 [OK]
circleci/node Node.js is a JavaScript-based platform for s… 99
readytalk/nodejs Node.js based off the official Debian Wheezy… 51 [OK]
kkarczmarczyk/node-yarn Node docker image with yarn package manager … 48 [OK]
digitallyseamless/nodejs-bower-grunt Node.js w/ Bower & Grunt Dockerfile for tru… 48 [OK]
bitnami/node Bitnami Node.js Docker Image 40 [OK]
iron/node Tiny Node image 29
calico/node 17 [OK]
appsvc/node Azure App Service Node.js dockerfiles 13 [OK]
centos/nodejs-8-centos7 Platform for building and running Node.js 8 … 10
cusspvz/node Super small Node.js container (~15MB) bas… 7 [OK]
basi/node-exporter Node exporter image that allows to expose th… 7 [OK]
centos/nodejs-6-centos7 Platform for building and running Node.js 6 … 4
ppc64le/node Node.js is a JavaScript-based platform for s… 2
openwhisk/nodejs6action Apache OpenWhisk runtime for Node.js v6 Acti… 2 [OK]
ogazitt/node-env node app that shows environment variables 1
nodecg/nodecg Create broadcast graphics using Node.js and … 1 [OK]
camptocamp/node-collectd rancher node monitoring agent 0 [OK]
testim/node-chrome Selenium Chrome Node + Testim Extension 0 [OK]
appsvctest/node node build 0 [OK]
-->@coder:~/myninx$ sudo docker search openjdk
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
openjdk OpenJDK is an open-source implementation of … 2009 [OK]
adoptopenjdk/openjdk11 Docker Images for OpenJDK Version 11 binarie… 64
oracle/openjdk Docker images containing OpenJDK Oracle Linux 57 [OK]
adoptopenjdk/openjdk8 Docker Images for OpenJDK Version 8 binaries… 50
adoptopenjdk/openjdk8-openj9 Docker Images for Eclipse OpenJ9 Version 8 b… 30
adoptopenjdk/openjdk11-openj9 Docker Images for Eclipse OpenJ9 Version 11 … 23
adoptopenjdk/openjdk12 Docker Images for OpenJDK Version 12 binarie… 15
shipilev/openjdk OpenJDK development builds 11
arm32v7/openjdk OpenJDK is an open-source implementation of … 10
arm64v8/openjdk OpenJDK is an open-source implementation of … 9
circleci/openjdk CircleCI images for OpenJDK 5 [OK]
adoptopenjdk/openjdk10 Docker Images for OpenJDK Version 10 binarie… 3
adoptopenjdk/openjdk9 Docker Images for OpenJDK Version 9 binaries… 2
opennms/openjdk Base image providing OpenJDK for OpenNMS ser… 2 [OK]
i386/openjdk OpenJDK is an open-source implementation of … 1
symphonicsoft/openjdkbase Openjdk base images with dumb-init and gette… 1
winamd64/openjdk OpenJDK is an open-source implementation of … 1
cfje/openjdk OpenJDK Builder Image 0
classmethod/openjdk-with-git docker image for openjdk and git 0 [OK]
suranagivinod/openjdk8 openjdk:8-jre-slim, zip & unzip 0
amd64/openjdk OpenJDK is an open-source implementation of … 0
ccistaging/openjdk CircleCI images for OpenJDK 0 [OK]
ccitest/openjdk CircleCI test images for OpenJDK 0 [OK]
trollin/openjdk 0
s390x/openjdk OpenJDK is an open-source implementation of … 0
-->@coder:~/myninx$ sudo docker search python
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
python Python is an interpreted, interactive, objec… 4736 [OK]
django Django is a free web application framework, … 902 [OK]
pypy PyPy is a fast, compliant alternative implem… 222 [OK]
kaggle/python Docker image for Python scripts run on Kaggle 130 [OK]
arm32v7/python Python is an interpreted, interactive, objec… 43
joyzoursky/python-chromedriver Python with Chromedriver, for running automa… 39 [OK]
centos/python-35-centos7 Platform for building and running Python 3.5… 37
circleci/python Python is an interpreted, interactive, objec… 33
nikolaik/python-nodejs Python with Node.js 31 [OK]
centos/python-36-centos7 Platform for building and running Python 3.6… 23
hylang Hy is a Lisp dialect that translates express… 23 [OK]
arm64v8/python Python is an interpreted, interactive, objec… 18
centos/python-27-centos7 Platform for building and running Python 2.7… 16
publicisworldwide/python-conda Basic Python environments with Conda. 6 [OK]
bitnami/python Bitnami Python Docker Image 4 [OK]
dockershelf/python Repository for docker images of Python. Test… 4 [OK]
i386/python Python is an interpreted, interactive, objec… 3
komand/python-plugin DEPRECATED: Komand Python SDK 2 [OK]
ppc64le/python Python is an interpreted, interactive, objec… 2
centos/python-34-centos7 Platform for building and running Python 3.4… 2
amd64/python Python is an interpreted, interactive, objec… 1
openshift/python-33-centos7 DEPRECATED: A Centos7 based Python v3.3 imag… 0
ccitest/python CircleCI test images for Python 0 [OK]
qbtrade/python python 3.6.5 with requirements last update s… 0
saagie/python Repo for python jobs 0
-->@coder:~/myninx$ sudo docker search python3.8
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
czentye/opencv-video-minimal OpenCV 4.1.2 with Python3.8 and video suppor… 1 [OK]
wfarn86/python3.8-requests 0
arhatdev/python3.8 0
jesavius/python3.8 0
7orb1/python3.8 0
blbraner/python3.8.0 0
vadosl/python3.8 0
voidsnax/python3.8-build 0
codewarsnl/codewars Pre-installed python3.8 with the codewars li… 0
ayixi/centos python3.8 0
-->@coder:~/myninx$ sudo docker search ruby
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
ruby Ruby is a dynamic, reflective, object-orient… 1782 [OK]
circleci/ruby Ruby is a dynamic, reflective, object-orient… 65
starefossen/ruby-node Docker Image with Ruby and Node.js installed 32 [OK]
heroku/ruby Docker Image for Heroku Ruby 22 [OK]
rubylang/ruby Experimental Ruby docker images officially p… 18
bitnami/ruby Bitnami Ruby Docker Image 17 [OK]
iron/ruby Tiny Ruby image. 7
hoteltonight/ruby-jemalloc Fork of official Ruby image but compiled jem… 5
centos/ruby-23-centos7 Platform for building and running Ruby 2.3 a… 4
centos/ruby-24-centos7 Platform for building and running Ruby 2.4 a… 3
centos/ruby-22-centos7 Platform for building and running Ruby 2.2 a… 3
openshift/ruby-20-centos7 DEPRECATED: A Centos7 based Ruby v2.0 image … 3
centos/ruby-25-centos7 Platform for building and running Ruby 2.5 a… 2
appsvc/ruby ruby 2 [OK]
instructure/ruby Instructure base ruby image 2 [OK]
ppc64le/ruby Ruby is a dynamic, reflective, object-orient… 1
thredup/ruby A base image for ruby-lang. 1 [OK]
i386/ruby Ruby is a dynamic, reflective, object-orient… 1
instructure/ruby-passenger Instructure ruby passenger images 1 [OK]
ccitest/ruby CircleCI test images for Ruby 0 [OK]
resource/rubygems RubyGems Integration for Concourse Pipelines 0 [OK]
appsvctest/ruby ruby build 0 [OK]
kapost/ruby Ruby rbenv and ruby runtime environment 0 [OK]
wealthsimple/ruby Base Ruby image for VPC services. 0
bedrockibm/ruby-runtime Prepackaged ruby runtime. 0
-->@coder:~/myninx$ sudo docker search golang
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
golang Go (golang) is a general purpose, higher-lev… 2940 [OK]
ilanyu/golang-reverseproxy golang-ReverseProxy 81 [OK]
circleci/golang CircleCI images for Go 14 [OK]
golangci/golangci-lint 6
portainer/golang-builder Utility to build Golang binaries. 4 [OK]
desertbit/golang-gb Golang GB Docker Image 4 [OK]
comptel/golang-kafkaclient Official golang image plus the kafka client … 3 [OK]
mxschmitt/golang_url_shortener URL Shortener written in Golang using Bolt D… 3
instructure/golang Instructure base golang image 2 [OK]
theyorkshiredev/golang-git A custom container with Golang and Git insta… 2 [OK]
webhippie/golang Docker images for Golang 1 [OK]
golangci/build-runner Image for running analysis (build) for https… 1
amsokol/golang-openshift 1
mpfmedical/golang-glide golang:1.7 with glide installed 1
nimmis/golang Builds a Docker container with golang on ubu… 1 [OK]
eugenmayer/golang-glide golang official alpine with glide / git prei… 1
pivotalcfreleng/golang 0
kaiterra/golang-base small-ish base image for golang that works w… 0 [OK]
creack/golang-dcind Golang with Docker in Docker 0
cloudfoundry/golang-ci 0
cfinfrastructure/golang 0
strarsis/golang-nightly Docker image packaging for golang nightly bu… 0 [OK]
jelastic/golang An image of the Golang application server ma… 0
jetbrainsinfra/golang Golang + custom build tools 0 [OK]
pivotalcfreleng/golang-om-source 0
-->@coder:~/myninx$ sudo docker search ubuntu
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
ubuntu Ubuntu is a Debian-based Linux operating sys… 10225 [OK]
dorowu/ubuntu-desktop-lxde-vnc Docker image to provide HTML5 VNC interface … 367 [OK]
rastasheep/ubuntu-sshd Dockerized SSH service, built on top of offi… 236 [OK]
consol/ubuntu-xfce-vnc Ubuntu container with "headless" VNC session… 199 [OK]
ubuntu-upstart Upstart is an event-based replacement for th… 102 [OK]
ansible/ubuntu14.04-ansible Ubuntu 14.04 LTS with ansible 98 [OK]
neurodebian NeuroDebian provides neuroscience research s… 61 [OK]
1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 50 [OK]
ubuntu-debootstrap debootstrap --variant=minbase --components=m… 41 [OK]
nuagebec/ubuntu Simple always updated Ubuntu docker images w… 24 [OK]
i386/ubuntu Ubuntu is a Debian-based Linux operating sys… 18
1and1internet/ubuntu-16-apache-php-5.6 ubuntu-16-apache-php-5.6 14 [OK]
1and1internet/ubuntu-16-apache-php-7.0 ubuntu-16-apache-php-7.0 13 [OK]
1and1internet/ubuntu-16-nginx-php-phpmyadmin-mariadb-10 ubuntu-16-nginx-php-phpmyadmin-mariadb-10 11 [OK]
1and1internet/ubuntu-16-nginx-php-5.6 ubuntu-16-nginx-php-5.6 8 [OK]
1and1internet/ubuntu-16-nginx-php-5.6-wordpress-4 ubuntu-16-nginx-php-5.6-wordpress-4 7 [OK]
1and1internet/ubuntu-16-apache-php-7.1 ubuntu-16-apache-php-7.1 6 [OK]
darksheer/ubuntu Base Ubuntu Image -- Updated hourly 5 [OK]
1and1internet/ubuntu-16-nginx-php-7.0 ubuntu-16-nginx-php-7.0 4 [OK]
pivotaldata/ubuntu A quick freshening-up of the base Ubuntu doc… 2
1and1internet/ubuntu-16-php-7.1 ubuntu-16-php-7.1 1 [OK]
smartentry/ubuntu ubuntu with smartentry 1 [OK]
pivotaldata/ubuntu-gpdb-dev Ubuntu images for GPDB development 1
pivotaldata/ubuntu16.04-build Ubuntu 16.04 image for GPDB compilation 1
1and1internet/ubuntu-16-sshd ubuntu-16-sshd 1 [OK]
-->@coder:~/myninx$ sudo docker search debian
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
ubuntu Ubuntu is a Debian-based Linux operating sys… 10225 [OK]
debian Debian is a Linux distribution that's compos… 3290 [OK]
arm32v7/debian Debian is a Linux distribution that's compos… 62
itscaro/debian-ssh debian:jessie 26 [OK]
samueldebruyn/debian-git a minimal docker container with debian and g… 21 [OK]
arm64v8/debian Debian is a Linux distribution that's compos… 21
i386/debian Debian is a Linux distribution that's compos… 10
multiarch/debian-debootstrap multiarch ports of debian-debootstrap 10
eboraas/debian Debian base images, for all currently-availa… 8 [OK]
vergissberlin/debian-development Docker debian image to use for development, … 6 [OK]
smartentry/debian debian with smartentry 4 [OK]
ppc64le/debian Debian is a Linux distribution that's compos… 4
vicamo/debian Debian docker images for all versions/archit… 3
vpgrp/debian Docker images of Debian. 2
s390x/debian Debian is a Linux distribution that's compos… 2
arm32v5/debian Debian is a Linux distribution that's compos… 2
dockershelf/debian Repository for docker images of Debian. Test… 1 [OK]
amd64/debian Debian is a Linux distribution that's compos… 1
holgerimbery/debian debian multiarch docker base image 1
1and1internet/debian-9-apache-php-7.1-shopware-5.4 Shopware on our Apache, PHP 7.1, Debian 9 ba… 1 [OK]
casept/debian-amd64 A debian image built from scratch. Mostly fo… 0
spritsail/debian-builder A Docker image based on debian:slim ideal fo… 0 [OK]
jdub/debian-sources-resource Concourse CI resource to check for updated D… 0 [OK]
1and1internet/debian-9-nginx-php-7.2-wordpress-4 debian-9-nginx-php-7.2-wordpress-4 0 [OK]
fleshgrinder/debian Debian base images for production and multis… 0 [OK]
-->@coder:~/myninx$ sudo docker search centos
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
centos The official build of CentOS. 5705 [OK]
ansible/centos7-ansible Ansible on Centos7 126 [OK]
jdeathe/centos-ssh OpenSSH / Supervisor / EPEL/IUS/SCL Repos - … 114 [OK]
consol/centos-xfce-vnc Centos container with "headless" VNC session… 100 [OK]
centos/mysql-57-centos7 MySQL 5.7 SQL database server 64
imagine10255/centos6-lnmp-php56 centos6-lnmp-php56 57 [OK]
tutum/centos Simple CentOS docker image with SSH access 44
centos/postgresql-96-centos7 PostgreSQL is an advanced Object-Relational … 39
centos/python-35-centos7 Platform for building and running Python 3.5… 37
kinogmt/centos-ssh CentOS with SSH 29 [OK]
pivotaldata/centos-gpdb-dev CentOS image for GPDB development. Tag names… 10
nathonfowlie/centos-jre Latest CentOS image with the JRE pre-install… 8 [OK]
drecom/centos-ruby centos ruby 6 [OK]
mamohr/centos-java Oracle Java 8 Docker image based on Centos 7 3 [OK]
darksheer/centos Base Centos Image -- Updated hourly 3 [OK]
pivotaldata/centos Base centos, freshened up a little with a Do… 3
pivotaldata/centos-gcc-toolchain CentOS with a toolchain, but unaffiliated wi… 2
pivotaldata/centos-mingw Using the mingw toolchain to cross-compile t… 2
blacklabelops/centos CentOS Base Image! Built and Updates Daily! 1 [OK]
mcnaughton/centos-base centos base image 1 [OK]
indigo/centos-maven Vanilla CentOS 7 with Oracle Java Developmen… 1 [OK]
pivotaldata/centos6.8-dev CentosOS 6.8 image for GPDB development 0
pivotaldata/centos7-dev CentosOS 7 image for GPDB development 0
smartentry/centos centos with smartentry 0 [OK]
fortinj66/centos7-s2i-nodejs based off of ryanj/centos7-s2i-nodejs. Bigg… 0
-->@coder:~/myninx$ sudo docker search fedora
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
fedora Official Docker builds of Fedora 834 [OK]
fedora/apache 36 [OK]
fedora/nginx 20 [OK]
mattsch/fedora-nzbhydra Fedora NZBHydra 5 [OK]
darksheer/fedora22 Base Fedora 22 Image -- Updated hourly 3 [OK]
vbatts/fedora-varnish https://github.com/vbatts/laughing-octo/tree… 2 [OK]
vergissberlin/fedora-development Docker fedora image to use for development, … 2 [OK]
darksheer/fedora23 Hourly updated Fedora 23 1 [OK]
darksheer/fedora24 Hourly update Fedora 24 1 [OK]
darksheer/fedora Hourly update latest Fedora Image 1 [OK]
ppc64le/fedora Official Docker builds of Fedora 1
darksheer/fedora25 Hourly updated Fedora 24 Docker Hub Image 1 [OK]
rhub/fedora-gcc-devel R-devel on Fedora latest 0
mattsch/fedora-nzbhydra2 Fedora NZBHydra2 (Java based) 0 [OK]
smartentry/fedora fedora with smartentry 0 [OK]
dokken/fedora-latest fedora-latest image for kitchen-dokken 0
langdon/fedora-mssqlserver Microsoft SQL Server running on Fedora. You … 0 [OK]
rhub/fedora-clang-devel R-devel on Fedora latest, with clang and gfo… 0
ovirtguestagent/fedora-atomic The oVirt Guest Agent for Fedora Atomic Host… 0
arm64v8/fedora Official Docker builds of Fedora 0
amd64/fedora Official Docker builds of Fedora 0
vcatechnology/fedora A Fedora image that is updated daily 0 [OK]
embreedocker/fedora Automated build of Fedora Docker images for … 0 [OK]
vcatechnology/fedora-ci A Fedora image that is used in the VCA Techn… 0 [OK]
mattsch/fedora-sonarr Fedora Sonarr 0 [OK]
-->@coder:~/myninx$ sudo docker search alpine
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
alpine A minimal Docker image based on Alpine Linux… 5882 [OK]
mhart/alpine-node Minimal Node.js built on Alpine Linux 445
anapsix/alpine-java Oracle Java 8 (and 7) with GLIBC 2.28 over A… 431 [OK]
frolvlad/alpine-glibc Alpine Docker image with glibc (~12MB) 221 [OK]
gliderlabs/alpine Image based on Alpine Linux will help you wi… 180
mvertes/alpine-mongo light MongoDB container 106 [OK]
alpine/git A simple git container running in alpine li… 105 [OK]
yobasystems/alpine-mariadb MariaDB running on Alpine Linux [docker] [am… 52 [OK]
kiasaki/alpine-postgres PostgreSQL docker image based on Alpine Linux 45 [OK]
alpine/socat Run socat command in alpine container 41 [OK]
davidcaste/alpine-tomcat Apache Tomcat 7/8 using Oracle Java 7/8 with… 39 [OK]
zzrot/alpine-caddy Caddy Server Docker Container running on Alp… 35 [OK]
easypi/alpine-arm AlpineLinux for RaspberryPi 32
jfloff/alpine-python A small, more complete, Python Docker image … 29 [OK]
byrnedo/alpine-curl Alpine linux with curl installed and set as … 28 [OK]
hermsi/alpine-sshd Dockerize your OpenSSH-server with rsync and… 26 [OK]
etopian/alpine-php-wordpress Alpine WordPress Nginx PHP-FPM WP-CLI 22 [OK]
hermsi/alpine-fpm-php Dockerize your FPM PHP 7.4 upon a lightweigh… 21 [OK]
zenika/alpine-chrome Chrome running in headless mode in a tiny Al… 15 [OK]
bashell/alpine-bash Alpine Linux with /bin/bash as a default she… 14 [OK]
davidcaste/alpine-java-unlimited-jce Oracle Java 8 (and 7) with GLIBC 2.21 over A… 13 [OK]
spotify/alpine Alpine image with `bash` and `curl`. 9 [OK]
tenstartups/alpine Alpine linux base docker image with useful p… 9 [OK]
roribio16/alpine-sqs Dockerized ElasticMQ server + web UI over Al… 7 [OK]
cfmanteiga/alpine-bash-curl-jq Docker Alpine image with Bash, curl and jq p… 4 [OK]
-->@coder:~/myninx$ docker pull alpine
Using default tag: latest
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/create?fromImage=alpine&tag=latest: dial unix /var/run/docker.sock: connect: permission denied
-->@coder:~/myninx$ sudo docker pull alpine
Using default tag: latest
latest: Pulling from library/alpine
Digest: sha256:c19173c5ada610a5989151111163d28a67368362762534d8a8121ce95cf2bd5a
Status: Downloaded newer image for alpine:latest
docker.io/library/alpine:latest
-->@coder:~/myninx$ docker image ls
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/json: dial unix /var/run/docker.sock: connect: permission denied
-->@coder:~/myninx$ sudo docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx v2 50776ea0e5a4 21 minutes ago 126MB
nginx latest 231d40e811cd 11 days ago 126MB
alpine latest 965ea09ff2eb 6 weeks ago 5.55MB
centos latest 0f3e07c0138f 2 months ago 220MB
ansible/ubuntu14.04-ansible latest 4621d4fe2959 4 years ago 461MB
-->@coder:~/myninx$ sudo make
make: *** 没有指明目标并且找不到 makefile。 停止。
-->@coder:~/myninx$ man make
MAKE(1) User Commands MAKE(1)
NAME
make - GNU make utility to maintain groups of programs
SYNOPSIS
make [OPTION]... [TARGET]...
MAKE(1) User Commands MAKE(1)
NAME
make - GNU make utility to maintain groups of programs
SYNOPSIS
make [OPTION]... [TARGET]...
MAKE(1) User Commands MAKE(1)
NAME
make - GNU make utility to maintain groups of programs
SYNOPSIS
make [OPTION]... [TARGET]...
...skipping...
-C dir, --directory=dir
Change to directory dir before reading the makefiles or doing anything else. If multiple -C options are specified, each is interpreted relative to the
previous one: -C / -C etc is equivalent to -C /etc. This is typically used with recursive invocations of make.
-d Print debugging information in addition to normal processing. The debugging information says which files are being considered for remaking, which file-
times are being compared and with what results, which files actually need to be remade, which implicit rules are considered and which are
applied---everything interesting about how make decides what to do.
-->@coder:~/myninx$ ls
Dockerfile
-->@coder:~/myninx$ docker build -t ngingx:v3 .
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&session=ej2md3xpsleluumovexd6sazz&shmsize=0&t=ngingx%3Av3&target=&ulimits=null&version=1: dial unix /var/run/docker.sock: connect: permission denied
-->@coder:~/myninx$ sudo docker build -t ngingx:v3 .
Sending build context to Docker daemon 2.048kB
Step 1/2 : FROM nginx
---> 231d40e811cd
Step 2/2 : RUN echo ' hello, Docker1' > /usr/share/nginx/html/index.html
---> Running in 507b2e7abc0f
Removing intermediate container 507b2e7abc0f
---> 4afd6b31fab7
Successfully built 4afd6b31fab7
Successfully tagged ngingx:v3
-->@coder:~/myninx$ more Dockerfile
FROM nginx
RUN echo ' hello, Docker1' > /usr/share/nginx/html/index.html
-->@coder:~/myninx$ ls
Dockerfile
-->@coder:~/myninx$ more Dockerfile
FROM nginx
RUN echo ' hello, Docker1' > /usr/share/nginx/html/index.html
-->@coder:~/myninx$ curl -s http://ip/cn
-->@coder:~/myninx$ ls
Dockerfile
-->@coder:~/myninx$ touch dockerfile
-->@coder:~/myninx$ vim dockerfile
1
1
2
~
~
~
~
~
~
~
~
-->@coder:~/myninx$ ls
dockerfile Dockerfile
-->@coder:~/myninx$ rm * -rf
-->@coder:~/myninx$ ls
-->@coder:~/myninx$ vim Dockerfile
1
1 FROM ubuntu:16:04
2 RUN apt-get update \
3 && apt-get install -y curl \
4 && rm -rf /var/lib/apt/lists/*
5 CMD [ "curl", "-s", "https://ip.cn" ]
~
~
~
~
~
"Dockerfile" [新] 5L, 139C 已写入
-->@coder:~/myninx$ docker build -t myip .
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&session=uf0prohvfg5qdpuh83toeat3j&shmsize=0&t=myip&target=&ulimits=null&version=1: dial unix /var/run/docker.sock: connect: permission denied
-->@coder:~/myninx$ sudo docker build -t myip .
[sudo] coder 的密码:
Sending build context to Docker daemon 2.048kB
Step 1/3 : FROM ubuntu:16:04
invalid reference format
-->@coder:~/myninx$ vim Dockerfile
1 FROM ubuntu:16:04
2 RUN apt-get update \
3 && apt-get install -y curl \
4 && rm -rf /var/lib/apt/lists/*
5 CMD [ "curl", "-s", "https://ip.cn" ]
~
~
~
~
~
"Dockerfile" 5L, 139C 已写入
-->@coder:~/myninx$ ls
Dockerfile
-->@coder:~/myninx$
-->@coder:~/myninx$
-->@coder:~/myninx$ sudo docker build -t myip .
Sending build context to Docker daemon 2.048kB
Step 1/3 : FROM ubuntu:16:04
invalid reference format
-->@coder:~/myninx$ docker run myip
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
-->@coder:~/myninx$ docker run myip
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
-->@coder:~/myninx$ ls
Dockerfile
-->@coder:~/myninx$
-->@coder:~/myninx$ vim Dockerfile
1 FROM ubuntu:16:04
2 RUN apt-get update \
3 && apt-get install -y curl \
4 && rm -rf /var/lib/apt/lists/*
5 CMD [ "curl", "-s", "https://ip.cn" ]
4 CMD [ "curl", "-s", "https://ip.cn" ]
3 CMD [ "curl", "-s", "https://ip.cn" ]
2 CMD [ "curl", "-s", "https://ip.cn" ]
1 CMD [ "curl", "-s", "https://ip.cn" ]
1 FROM
2
2 RUN
3
4
~
~
~
~
~
~
:! man 'CMD'
[已修改但尚未保存]
没有 CMD 的手册页条目
Shell 已返回16
请按 ENTER 或其它命令继续
1 FROM
2 RUN
3 CMD
4
~
~
~
~
~
~
:! man 'CMD'
[已修改但尚未保存]
没有 CMD 的手册页条目
Shell 已返回16
请按 ENTER 或其它命令继续
1 FROM
2 RUN
3 CMD
4
~
~
~
~
~
~
:! man 'CMD'
[已修改但尚未保存]
没有 CMD 的手册页条目
Shell 已返回16
请按 ENTER 或其它命令继续
1 FROM
2 RUN
3 CMD
4
~
~
~
~
~
~
:! man 'CMD'
[已修改但尚未保存]
没有 CMD 的手册页条目
Shell 已返回16
请按 ENTER 或其它命令继续
1 FROM
2 RUN
3 CMD
4
4 CMD
4 CMD
5 CMD
6 CMD
~
~
~
~
"Dockerfile" 6L, 139C 已写入
-->@coder:~/myninx$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ngingx v3 4afd6b31fab7 About an hour ago 126MB
nginx v2 50776ea0e5a4 2 hours ago 126MB
nginx latest 231d40e811cd 11 days ago 126MB
alpine latest 965ea09ff2eb 6 weeks ago 5.55MB
centos latest 0f3e07c0138f 2 months ago 220MB
ansible/ubuntu14.04-ansible latest 4621d4fe2959 4 years ago 461MB
-->@coder:~/myninx$ sudo docker search ubuntu:16.04
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
fuyuanli/xampp XAMPP based on Ubuntu:16.04 5
jaehyeon/r-java r docker image from ubuntu:16.04 (r-base, r-… 3 [OK]
rocm/dev-ubuntu-16.04 Docker image based on Ubuntu:16.04 with the … 2
islandsound/vowpal_wabbit vowpal_wabbit 8.0.5 FROM ubuntu:16.04 1
jaehyeon/r-basic r docker image from ubuntu:16.04 (r-base, r-… 1 [OK]
netdodo/android-emulator Android-emulator API-25 with armeabi-v7a ima… 1 [OK]
beeven/docker-sqlcmd sqlcmd run on top of ubuntu:16.04 1 [OK]
abienkowski/jnlp-slave Based on jenkins/jnlp-slave and ubuntu:16.04… 1 [OK]
sneak/sandbox fully loaded ubuntu:16.04 sandbox for immedi… 1 [OK]
fizzymatt/nessus-7-ubuntu Nessus version 7.0.1 (unlicensed). Uses Ubun… 0
hasarden/ubuntu-integration ubuntu:16.04 with docker and dotnet-sdk 0
tecposter/nginx Nginx build from source code on Ubuntu:16.04 0 [OK]
akatiyar/ros-py-base ROS Kinetic base with python image based off… 0 [OK]
moritzf/virtualhere Auto-Updating Docker image based on ubuntu:1… 0 [OK]
rightscale/ops_java_base A base image based on ubuntu:16.04 that for … 0
insready/nginx A folk from the official nginx library. This… 0 [OK]
cosmiqworks/spacenet-utilities-cpu CPU Docker Container for SpaceNetUtilities B… 0 [OK]
ptpadan1246/ubuntu-node-go base image is ubuntu:16.04 golang nodejs pyt… 0 [OK]
wtanaka/ubuntu-1604 ubuntu:16.04 with apt-get update and apt-get… 0 [OK]
c6prmk/r-base-dev Based on ubuntu:16.04 (wget, curl, git) 0 [OK]
roongr2k7/google-chrome ubuntu:16.04, google-chrome-stable 0 [OK]
acntechie/openldap Docker image with OpenLDAP and phpLDAPadmin,… 0 [OK]
cristo/password_manager Password_storage on Ubuntu:16.04 0 [OK]
sungsu7437/ubuntu_spark install spark in ubuntu:16.04 0 [OK]
chhuang/docker_image_filebeat build filebeat image based on ubuntu:16.04 0 [OK]
-->@coder:~/myninx$ sudo docker search ubuntu
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
ubuntu Ubuntu is a Debian-based Linux operating sys… 10225 [OK]
dorowu/ubuntu-desktop-lxde-vnc Docker image to provide HTML5 VNC interface … 367 [OK]
rastasheep/ubuntu-sshd Dockerized SSH service, built on top of offi… 236 [OK]
consol/ubuntu-xfce-vnc Ubuntu container with "headless" VNC session… 199 [OK]
ubuntu-upstart Upstart is an event-based replacement for th… 102 [OK]
ansible/ubuntu14.04-ansible Ubuntu 14.04 LTS with ansible 98 [OK]
neurodebian NeuroDebian provides neuroscience research s… 61 [OK]
1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 50 [OK]
ubuntu-debootstrap debootstrap --variant=minbase --components=m… 41 [OK]
nuagebec/ubuntu Simple always updated Ubuntu docker images w… 24 [OK]
i386/ubuntu Ubuntu is a Debian-based Linux operating sys… 18
1and1internet/ubuntu-16-apache-php-5.6 ubuntu-16-apache-php-5.6 14 [OK]
1and1internet/ubuntu-16-apache-php-7.0 ubuntu-16-apache-php-7.0 13 [OK]
ppc64le/ubuntu Ubuntu is a Debian-based Linux operating sys… 13
eclipse/ubuntu_jdk8 Ubuntu, JDK8, Maven 3, git, curl, nmap, mc, … 12 [OK]
1and1internet/ubuntu-16-nginx-php-phpmyadmin-mariadb-10 ubuntu-16-nginx-php-phpmyadmin-mariadb-10 11 [OK]
1and1internet/ubuntu-16-nginx-php-5.6-wordpress-4 ubuntu-16-nginx-php-5.6-wordpress-4 7 [OK]
1and1internet/ubuntu-16-apache-php-7.1 ubuntu-16-apache-php-7.1 6 [OK]
darksheer/ubuntu Base Ubuntu Image -- Updated hourly 5 [OK]
1and1internet/ubuntu-16-nginx-php-7.0 ubuntu-16-nginx-php-7.0 4 [OK]
pivotaldata/ubuntu A quick freshening-up of the base Ubuntu doc… 2
1and1internet/ubuntu-16-php-7.1 ubuntu-16-php-7.1 1 [OK]
smartentry/ubuntu ubuntu with smartentry 1 [OK]
pivotaldata/ubuntu-gpdb-dev Ubuntu images for GPDB development 1
1and1internet/ubuntu-16-sshd ubuntu-16-sshd 1 [OK]
-->@coder:~/myninx$ sudo docker pull ubuntu:16.04
16.04: Pulling from library/ubuntu
Digest: sha256:e10375c69cf9e22989c82b0a87c932a21e33619ee322d6c7ce6a61456f54c30c
Status: Downloaded newer image for ubuntu:16.04
docker.io/library/ubuntu:16.04
-->@coder:~/myninx$ sudo docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
ngingx v3 4afd6b31fab7 About an hour ago 126MB
nginx v2 50776ea0e5a4 2 hours ago 126MB
ubuntu 16.04 56bab49eef2e 7 days ago 123MB
nginx latest 231d40e811cd 11 days ago 126MB
alpine latest 965ea09ff2eb 6 weeks ago 5.55MB
centos latest 0f3e07c0138f 2 months ago 220MB
ansible/ubuntu14.04-ansible latest 4621d4fe2959 4 years ago 461MB
-->@coder:~/myninx$ ls
Dockerfile
-->@coder:~/myninx$
-->@coder:~/myninx$
-->@coder:~/myninx$ sudo docker build -t myip .
Sending build context to Docker daemon 2.048kB
Step 1/3 : FROM ubuntu:16.04
---> 56bab49eef2e
Step 2/3 : RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
---> Running in 914bd7a7403b
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [1015 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [594 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6283 B]
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
^C
-->@coder:~/myninx$ sudo docker build -t myip .
Sending build context to Docker daemon 2.048kB
Step 1/3 : FROM ubuntu:16.04
---> 56bab49eef2e
Step 2/3 : RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
---> Running in dfb587cd2b8f
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [1015 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [594 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6283 B]
Get:10 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1393 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1393 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [998 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [998 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.3 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7942 B]
Get:18 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8807 B]
Fetched 14.4 MB in 17min 38s (13.6 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
ca-certificates krb5-locales libasn1-8-heimdal libcurl3-gnutls libffi6
libgmp10 libgnutls30 libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal
libheimbase1-heimdal libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal
libidn11 libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3
libkrb5support0 libldap-2.4-2 libnettle6 libp11-kit0 libroken18-heimdal
librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libsqlite3-0
libssl1.0.0 libtasn1-6 libwind0-heimdal openssl
Suggested packages:
gnutls-bin krb5-doc krb5-user libsasl2-modules-otp libsasl2-modules-ldap
libsasl2-modules-sql libsasl2-modules-gssapi-mit
| libsasl2-modules-gssapi-heimdal
The following NEW packages will be installed:
ca-certificates curl krb5-locales libasn1-8-heimdal libcurl3-gnutls libffi6
libgmp10 libgnutls30 libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal
libheimbase1-heimdal libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal
libidn11 libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3
libkrb5support0 libldap-2.4-2 libnettle6 libp11-kit0 libroken18-heimdal
librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libsqlite3-0
libssl1.0.0 libtasn1-6 libwind0-heimdal openssl
0 upgraded, 34 newly installed, 0 to remove and 0 not upgraded.
Need to get 5346 kB of archives.
After this operation, 19.0 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libffi6 amd64 3.2.1-4 [17.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 libgmp10 amd64 2:6.1.0+dfsg-2 [240 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libnettle6 amd64 3.2-1ubuntu0.16.04.1 [93.5 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libhogweed4 amd64 3.2-1ubuntu0.16.04.1 [136 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libidn11 amd64 1.32-3ubuntu1.2 [46.5 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libp11-kit0 amd64 0.23.2-5~ubuntu16.04.1 [105 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtasn1-6 amd64 4.7-3ubuntu0.16.04.3 [43.5 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgnutls30 amd64 3.4.10-4ubuntu1.5 [548 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libsqlite3-0 amd64 3.11.0-1ubuntu1.3 [397 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libssl1.0.0 amd64 1.0.2g-1ubuntu4.15 [1084 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssl amd64 1.0.2g-1ubuntu4.15 [492 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ca-certificates all 20170717~16.04.2 [167 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 krb5-locales all 1.13.2+dfsg-5ubuntu2.1 [13.6 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libroken18-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [41.4 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libasn1-8-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [174 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5support0 amd64 1.13.2+dfsg-5ubuntu2.1 [31.2 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libk5crypto3 amd64 1.13.2+dfsg-5ubuntu2.1 [81.3 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial/main amd64 libkeyutils1 amd64 1.5.9-8ubuntu1 [9904 B]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5-3 amd64 1.13.2+dfsg-5ubuntu2.1 [273 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgssapi-krb5-2 amd64 1.13.2+dfsg-5ubuntu2.1 [120 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libhcrypto4-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [85.0 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libheimbase1-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [29.3 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libwind0-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [47.8 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libhx509-5-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [107 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5-26-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [202 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libheimntlm0-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [15.1 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgssapi3-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [96.1 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libsasl2-modules-db amd64 2.1.26.dfsg1-14ubuntu0.1 [14.5 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libsasl2-2 amd64 2.1.26.dfsg1-14ubuntu0.1 [48.6 kB]
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libldap-2.4-2 amd64 2.4.42+dfsg-2ubuntu3.7 [160 kB]
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d-1ubuntu0.1 [54.4 kB]
Get:32 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcurl3-gnutls amd64 7.47.0-1ubuntu2.14 [184 kB]
Get:33 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libsasl2-modules amd64 2.1.26.dfsg1-14ubuntu0.1 [47.5 kB]
Get:34 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 curl amd64 7.47.0-1ubuntu2.14 [139 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 5346 kB in 27s (195 kB/s)
Selecting previously unselected package libffi6:amd64.
(Reading database ... 4781 files and directories currently installed.)
Preparing to unpack .../libffi6_3.2.1-4_amd64.deb ...
Unpacking libffi6:amd64 (3.2.1-4) ...
Selecting previously unselected package libgmp10:amd64.
Preparing to unpack .../libgmp10_2%3a6.1.0+dfsg-2_amd64.deb ...
Unpacking libgmp10:amd64 (2:6.1.0+dfsg-2) ...
Selecting previously unselected package libnettle6:amd64.
Preparing to unpack .../libnettle6_3.2-1ubuntu0.16.04.1_amd64.deb ...
Unpacking libnettle6:amd64 (3.2-1ubuntu0.16.04.1) ...
Selecting previously unselected package libhogweed4:amd64.
Preparing to unpack .../libhogweed4_3.2-1ubuntu0.16.04.1_amd64.deb ...
Unpacking libhogweed4:amd64 (3.2-1ubuntu0.16.04.1) ...
Selecting previously unselected package libidn11:amd64.
Preparing to unpack .../libidn11_1.32-3ubuntu1.2_amd64.deb ...
Unpacking libidn11:amd64 (1.32-3ubuntu1.2) ...
Selecting previously unselected package libp11-kit0:amd64.
Preparing to unpack .../libp11-kit0_0.23.2-5~ubuntu16.04.1_amd64.deb ...
Unpacking libp11-kit0:amd64 (0.23.2-5~ubuntu16.04.1) ...
Selecting previously unselected package libtasn1-6:amd64.
Preparing to unpack .../libtasn1-6_4.7-3ubuntu0.16.04.3_amd64.deb ...
Unpacking libtasn1-6:amd64 (4.7-3ubuntu0.16.04.3) ...
Selecting previously unselected package libgnutls30:amd64.
Preparing to unpack .../libgnutls30_3.4.10-4ubuntu1.5_amd64.deb ...
Unpacking libgnutls30:amd64 (3.4.10-4ubuntu1.5) ...
Selecting previously unselected package libsqlite3-0:amd64.
Preparing to unpack .../libsqlite3-0_3.11.0-1ubuntu1.3_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.11.0-1ubuntu1.3) ...
Selecting previously unselected package libssl1.0.0:amd64.
Preparing to unpack .../libssl1.0.0_1.0.2g-1ubuntu4.15_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.2g-1ubuntu4.15) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.2g-1ubuntu4.15_amd64.deb ...
Unpacking openssl (1.0.2g-1ubuntu4.15) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20170717~16.04.2_all.deb ...
Unpacking ca-certificates (20170717~16.04.2) ...
Selecting previously unselected package krb5-locales.
Preparing to unpack .../krb5-locales_1.13.2+dfsg-5ubuntu2.1_all.deb ...
Unpacking krb5-locales (1.13.2+dfsg-5ubuntu2.1) ...
Selecting previously unselected package libroken18-heimdal:amd64.
Preparing to unpack .../libroken18-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libroken18-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libasn1-8-heimdal:amd64.
Preparing to unpack .../libasn1-8-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libasn1-8-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../libkrb5support0_1.13.2+dfsg-5ubuntu2.1_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.13.2+dfsg-5ubuntu2.1) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../libk5crypto3_1.13.2+dfsg-5ubuntu2.1_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.13.2+dfsg-5ubuntu2.1) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../libkeyutils1_1.5.9-8ubuntu1_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.5.9-8ubuntu1) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../libkrb5-3_1.13.2+dfsg-5ubuntu2.1_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.13.2+dfsg-5ubuntu2.1) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../libgssapi-krb5-2_1.13.2+dfsg-5ubuntu2.1_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.13.2+dfsg-5ubuntu2.1) ...
Selecting previously unselected package libhcrypto4-heimdal:amd64.
Preparing to unpack .../libhcrypto4-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libhcrypto4-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libheimbase1-heimdal:amd64.
Preparing to unpack .../libheimbase1-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libheimbase1-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libwind0-heimdal:amd64.
Preparing to unpack .../libwind0-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libwind0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libhx509-5-heimdal:amd64.
Preparing to unpack .../libhx509-5-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libhx509-5-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libkrb5-26-heimdal:amd64.
Preparing to unpack .../libkrb5-26-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libkrb5-26-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libheimntlm0-heimdal:amd64.
Preparing to unpack .../libheimntlm0-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libheimntlm0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libgssapi3-heimdal:amd64.
Preparing to unpack .../libgssapi3-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libgssapi3-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../libsasl2-modules-db_2.1.26.dfsg1-14ubuntu0.1_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.26.dfsg1-14ubuntu0.1) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../libsasl2-2_2.1.26.dfsg1-14ubuntu0.1_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.26.dfsg1-14ubuntu0.1) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../libldap-2.4-2_2.4.42+dfsg-2ubuntu3.7_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.7) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../librtmp1_2.4+20151223.gitfa8646d-1ubuntu0.1_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d-1ubuntu0.1) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../libcurl3-gnutls_7.47.0-1ubuntu2.14_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.14) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../libsasl2-modules_2.1.26.dfsg1-14ubuntu0.1_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.26.dfsg1-14ubuntu0.1) ...
Selecting previously unselected package curl.
Preparing to unpack .../curl_7.47.0-1ubuntu2.14_amd64.deb ...
Unpacking curl (7.47.0-1ubuntu2.14) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Setting up libffi6:amd64 (3.2.1-4) ...
Setting up libgmp10:amd64 (2:6.1.0+dfsg-2) ...
Setting up libnettle6:amd64 (3.2-1ubuntu0.16.04.1) ...
Setting up libhogweed4:amd64 (3.2-1ubuntu0.16.04.1) ...
Setting up libidn11:amd64 (1.32-3ubuntu1.2) ...
Setting up libp11-kit0:amd64 (0.23.2-5~ubuntu16.04.1) ...
Setting up libtasn1-6:amd64 (4.7-3ubuntu0.16.04.3) ...
Setting up libgnutls30:amd64 (3.4.10-4ubuntu1.5) ...
Setting up libsqlite3-0:amd64 (3.11.0-1ubuntu1.3) ...
Setting up libssl1.0.0:amd64 (1.0.2g-1ubuntu4.15) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up openssl (1.0.2g-1ubuntu4.15) ...
Setting up ca-certificates (20170717~16.04.2) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up krb5-locales (1.13.2+dfsg-5ubuntu2.1) ...
Setting up libroken18-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libasn1-8-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libkrb5support0:amd64 (1.13.2+dfsg-5ubuntu2.1) ...
Setting up libk5crypto3:amd64 (1.13.2+dfsg-5ubuntu2.1) ...
Setting up libkeyutils1:amd64 (1.5.9-8ubuntu1) ...
Setting up libkrb5-3:amd64 (1.13.2+dfsg-5ubuntu2.1) ...
Setting up libgssapi-krb5-2:amd64 (1.13.2+dfsg-5ubuntu2.1) ...
Setting up libhcrypto4-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libheimbase1-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libwind0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libhx509-5-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libkrb5-26-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libheimntlm0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libgssapi3-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libsasl2-modules-db:amd64 (2.1.26.dfsg1-14ubuntu0.1) ...
Setting up libsasl2-2:amd64 (2.1.26.dfsg1-14ubuntu0.1) ...
Setting up libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.7) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d-1ubuntu0.1) ...
Setting up libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.14) ...
Setting up libsasl2-modules:amd64 (2.1.26.dfsg1-14ubuntu0.1) ...
Setting up curl (7.47.0-1ubuntu2.14) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for ca-certificates (20170717~16.04.2) ...
Updating certificates in /etc/ssl/certs...
148 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container dfb587cd2b8f
---> 27a714eb7d09
Step 3/3 : CMD [ "curl", "-s", "http://ip.cn" ]
---> Running in ba7b6e192992
Removing intermediate container ba7b6e192992
---> fec6dab28edf
Successfully built fec6dab28edf
Successfully tagged myip:latest
-->@coder:~/myninx$ docker info
Client:
Debug Mode: false
Server:
ERROR: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/info: dial unix /var/run/docker.sock: connect: permission denied
errors pretty printing info
-->@coder:~/myninx$ sudo docker info
[sudo] coder 的密码:
Client:
Debug Mode: false
Server:
Containers: 2
Running: 2
Paused: 0
Stopped: 0
Images: 9
Server Version: 19.03.5
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.15.0-70-generic
Operating System: Ubuntu 16.04.6 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 2.909GiB
Name: coder
ID: W3LG:G7PJ:FMUT:XUJO:M5ZC:5LV2:SGLZ:PPPU:F3UB:4LZN:MPEB:ZGM5
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
https://uog9ef8i.mirror.aliyuncs.com/
Live Restore Enabled: false
WARNING: No swap limit support
-->@coder:~/myninx$ sudo docker build -t myip .
Sending build context to Docker daemon 2.048kB
Step 1/3 : FROM ubuntu:16.04
---> 56bab49eef2e
Step 2/3 : RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
---> Using cache
---> 27a714eb7d09
Step 3/3 : CMD [ "curl", "-s", "http://ip.cn" ]
---> Using cache
---> fec6dab28edf
Successfully built fec6dab28edf
Successfully tagged myip:latest
-->@coder:~/myninx$ ls
Dockerfile
-->@coder:~/myninx$ docker image ls
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/json: dial unix /var/run/docker.sock: connect: permission denied
-->@coder:~/myninx$ docker images
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/json: dial unix /var/run/docker.sock: connect: permission denied
-->@coder:~/myninx$ sudo dockcer images
sudo: dockcer:找不到命令
-->@coder:~/myninx$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
myip latest fec6dab28edf 7 minutes ago 139MB
ngingx v3 4afd6b31fab7 2 hours ago 126MB
nginx v2 50776ea0e5a4 2 hours ago 126MB
ubuntu 16.04 56bab49eef2e 7 days ago 123MB
nginx latest 231d40e811cd 11 days ago 126MB
alpine latest 965ea09ff2eb 6 weeks ago 5.55MB
centos latest 0f3e07c0138f 2 months ago 220MB
ansible/ubuntu14.04-ansible latest 4621d4fe2959 4 years ago 461MB
-->@coder:~/myninx$ docker run -it myip
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
-->@coder:~/myninx$ sudo docker run myip
-->@coder:~/myninx$
-->@coder:~/myninx$
-->@coder:~/myninx$
-->@coder:~/myninx$
-->@coder:~/myninx$ sudo docker run myip -i
docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \"-i\": executable file not found in $PATH": unknown.
centos latest 0f3e07c0138f 2 months ago 220MB
ansible/ubuntu14.04-ansible latest 4621d4fe2959 4 years ago 461MB
-->@coder:~/myninx$ docker run -it myip
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
-->@coder:~/myninx$ sudo docker run myip
-->@coder:~/myninx$
-->@coder:~/myninx$
-->@coder:~/myninx$
-->@coder:~/myninx$
-->@coder:~/myninx$ sudo docker run myip -i
docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \"-i\": executable file not found in $PATH": unknown.
-->@coder:~/myninx$ ls
Dockerfile
-->@coder:~/myninx$ vim Dockerfile
1 FROM ubuntu:16.04
2 RUN apt-get update \
3 && apt-get install -y curl \
4 && rm -rf /var/lib/apt/lists/*
5 CMD [ "curl", "-s", "http://ip.cn" ]
6
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"Dockerfile" 6L, 146C 已写入
-->@coder:~/myninx$
-->@coder:~/myninx$ more Dockerfile
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get install -y curl \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT [ "curl", "-s", "http://ip.cn" ]
-->@coder:~/myninx$ sudo docker run myip -i
docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \"-i\": executable file not found in $PATH": unknown.
ERRO[0001] error waiting for container: context canceled
-->@coder:~/myninx$ sudo docker container
Usage: docker container COMMAND
Manage containers
Commands:
attach Attach local standard input, output, and error streams to a running container
commit Create a new image from a container's changes
cp Copy files/folders between a container and the local filesystem
create Create a new container
diff Inspect changes to files or directories on a container's filesystem
exec Run a command in a running container
export Export a container's filesystem as a tar archive
inspect Display detailed information on one or more containers
kill Kill one or more running containers
logs Fetch the logs of a container
ls List containers
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
prune Remove all stopped containers
rename Rename a container
restart Restart one or more containers
rm Remove one or more containers
run Run a command in a new container
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
top Display the running processes of a container
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
wait Block until one or more containers stop, then print their exit codes
Run 'docker container COMMAND --help' for more information on a command.
-->@coder:~/myninx$ sudo docker container
-->@coder:~/myninx$ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a279c8cb0430 nginx:v2 "nginx -g 'daemon of…" 2 hours ago Up 2 hours 0.0.0.0:81->80/tcp web2
e188b46041a5 nginx "nginx -g 'daemon of…" 3 hours ago Up 3 hours 0.0.0.0:80->80/tcp webserver
-->@coder:~/myninx$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
myip latest fec6dab28edf 13 minutes ago 139MB
ngingx v3 4afd6b31fab7 2 hours ago 126MB
nginx v2 50776ea0e5a4 3 hours ago 126MB
ubuntu 16.04 56bab49eef2e 7 days ago 123MB
nginx latest 231d40e811cd 11 days ago 126MB
alpine latest 965ea09ff2eb 6 weeks ago 5.55MB
centos latest 0f3e07c0138f 2 months ago 220MB
ansible/ubuntu14.04-ansible latest 4621d4fe2959 4 years ago 461MB
-->@coder:~/myninx$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
myip latest fec6dab28edf 13 minutes ago 139MB
ngingx v3 4afd6b31fab7 2 hours ago 126MB
nginx v2 50776ea0e5a4 3 hours ago 126MB
ubuntu 16.04 56bab49eef2e 7 days ago 123MB
nginx latest 231d40e811cd 11 days ago 126MB
alpine latest 965ea09ff2eb 6 weeks ago 5.55MB
centos latest 0f3e07c0138f 2 months ago 220MB
ansible/ubuntu14.04-ansible latest 4621d4fe2959 4 years ago 461MB
-->@coder:~/myninx$ ls
Dockerfile
-->@coder:~/myninx$ more Dockerfile
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get install -y curl \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT [ "curl", "-s", "http://ip.cn" ]
-->@coder:~/myninx$ mv Dockerfile Dockerfile.ip
-->@coder:~/myninx$ vim Dockerfile
1
1 FROM nginx
2 RUN apt-get && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
3 HEALTHCHECK --interval=5s --timeout=3s \
3 HEALTHCHECK --interval=5s --timeout=3s \
4 CMD curl -fs http://localhost/ || exit 1
~
~
~
~
~
"Dockerfile" [新] 4L, 165C 已写入
-->@coder:~/myninx$ sudo docker build -t myweb:v1 .
Sending build context to Docker daemon 3.072kB
Step 1/3 : FROM nginx
---> 231d40e811cd
Step 2/3 : RUN apt-get && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
---> Running in 0e83d3c0c655
apt 1.8.2 (amd64)
Usage: apt-get [options] command
apt-get [options] install|remove pkg1 [pkg2 ...]
apt-get [options] source pkg1 [pkg2 ...]
apt-get is a command line interface for retrieval of packages
and information about them from authenticated sources and
for installation, upgrade and removal of packages together
with their dependencies.
Most used commands:
update - Retrieve new lists of packages
upgrade - Perform an upgrade
install - Install new packages (pkg is libc6 not libc6.deb)
reinstall - Reinstall packages (pkg is libc6 not libc6.deb)
remove - Remove packages
purge - Remove packages and config files
autoremove - Remove automatically all unused packages
dist-upgrade - Distribution upgrade, see apt-get(8)
dselect-upgrade - Follow dselect selections
build-dep - Configure build-dependencies for source packages
clean - Erase downloaded archive files
autoclean - Erase old downloaded archive files
check - Verify that there are no broken dependencies
source - Download source archives
download - Download the binary package into the current directory
changelog - Download and display the changelog for the given package
See apt-get(8) for more information about the available commands.
Configuration options and syntax is detailed in apt.conf(5).
Information about how to configure sources can be found in sources.list(5).
Package and version choices can be expressed via apt_preferences(5).
Security details are available in apt-secure(8).
This APT has Super Cow Powers.
The command '/bin/sh -c apt-get && apt-get install -y curl && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 1
-->@coder:~/myninx$
-->@coder:~/myninx$ vim Dockerfile
1 FROM nginx
2 RUN apt-get && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
3 HEALTHCHECK --interval=5s --timeout=3s \
4 CMD curl -fs http://localhost/ || exit 1
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"Dockerfile" 4L, 172C 已写入
-->@coder:~/myninx$
-->@coder:~/myninx$ ls
Dockerfile Dockerfile.ip
-->@coder:~/myninx$ sudo docker build -t myweb:v1 .
Sending build context to Docker daemon 3.072kB
Step 1/3 : FROM nginx
---> 231d40e811cd
Step 2/3 : RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
---> Running in 0cd297b35d4c
Get:2 http://cdn-fastly.deb.debian.org/debian buster InRelease [122 kB]
Get:1 http://security-cdn.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:4 http://security-cdn.debian.org/debian-security buster/updates/main amd64 Packages [159 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages [7908 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian buster-updates/main amd64 Packages [5792 B]
Fetched 8309 kB in 6s (1481 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
ca-certificates krb5-locales libcurl4 libgssapi-krb5-2 libk5crypto3
libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common
libnghttp2-14 libpsl5 librtmp1 libsasl2-2 libsasl2-modules
libsasl2-modules-db libssh2-1 openssl publicsuffix
Suggested packages:
krb5-doc krb5-user libsasl2-modules-gssapi-mit
| libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp
libsasl2-modules-sql
The following NEW packages will be installed:
ca-certificates curl krb5-locales libcurl4 libgssapi-krb5-2 libk5crypto3
libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common
libnghttp2-14 libpsl5 librtmp1 libsasl2-2 libsasl2-modules
libsasl2-modules-db libssh2-1 openssl publicsuffix
0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
Need to get 3471 kB of archives.
After this operation, 7724 kB of additional disk space will be used.
Get:1 http://cdn-fastly.deb.debian.org/debian buster/main amd64 krb5-locales all 1.17-3 [95.4 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian buster/main amd64 openssl amd64 1.1.1d-0+deb10u2 [843 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian buster/main amd64 ca-certificates all 20190110 [157 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libkeyutils1 amd64 1.6-6 [15.0 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libkrb5support0 amd64 1.17-3 [65.6 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libk5crypto3 amd64 1.17-3 [121 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libkrb5-3 amd64 1.17-3 [370 kB]
Get:8 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libgssapi-krb5-2 amd64 1.17-3 [158 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg-1 [69.0 kB]
Get:10 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libsasl2-2 amd64 2.1.27+dfsg-1 [106 kB]
Get:11 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libldap-common all 2.4.47+dfsg-3+deb10u1 [89.6 kB]
Get:12 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libldap-2.4-2 amd64 2.4.47+dfsg-3+deb10u1 [225 kB]
Get:13 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libnghttp2-14 amd64 1.36.0-2+deb10u1 [85.0 kB]
Get:14 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libpsl5 amd64 0.20.2-2 [53.7 kB]
Get:15 http://cdn-fastly.deb.debian.org/debian buster/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2 [60.5 kB]
Get:16 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libssh2-1 amd64 1.8.0-2.1 [140 kB]
Get:17 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libcurl4 amd64 7.64.0-4 [332 kB]
Get:18 http://cdn-fastly.deb.debian.org/debian buster/main amd64 curl amd64 7.64.0-4 [264 kB]
Get:19 http://cdn-fastly.deb.debian.org/debian buster/main amd64 libsasl2-modules amd64 2.1.27+dfsg-1 [104 kB]
Get:20 http://cdn-fastly.deb.debian.org/debian buster/main amd64 publicsuffix all 20190415.1030-1 [116 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 3471 kB in 3s (1046 kB/s)
Selecting previously unselected package krb5-locales.
(Reading database ... 7203 files and directories currently installed.)
Preparing to unpack .../00-krb5-locales_1.17-3_all.deb ...
Unpacking krb5-locales (1.17-3) ...
Selecting previously unselected package openssl.
Preparing to unpack .../01-openssl_1.1.1d-0+deb10u2_amd64.deb ...
Unpacking openssl (1.1.1d-0+deb10u2) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../02-ca-certificates_20190110_all.deb ...
Unpacking ca-certificates (20190110) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../03-libkeyutils1_1.6-6_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.6-6) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../04-libkrb5support0_1.17-3_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.17-3) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../05-libk5crypto3_1.17-3_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.17-3) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../06-libkrb5-3_1.17-3_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.17-3) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../07-libgssapi-krb5-2_1.17-3_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.17-3) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../08-libsasl2-modules-db_2.1.27+dfsg-1_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg-1) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../09-libsasl2-2_2.1.27+dfsg-1_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.27+dfsg-1) ...
Selecting previously unselected package libldap-common.
Preparing to unpack .../10-libldap-common_2.4.47+dfsg-3+deb10u1_all.deb ...
Unpacking libldap-common (2.4.47+dfsg-3+deb10u1) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../11-libldap-2.4-2_2.4.47+dfsg-3+deb10u1_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u1) ...
Selecting previously unselected package libnghttp2-14:amd64.
Preparing to unpack .../12-libnghttp2-14_1.36.0-2+deb10u1_amd64.deb ...
Unpacking libnghttp2-14:amd64 (1.36.0-2+deb10u1) ...
Selecting previously unselected package libpsl5:amd64.
Preparing to unpack .../13-libpsl5_0.20.2-2_amd64.deb ...
Unpacking libpsl5:amd64 (0.20.2-2) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../14-librtmp1_2.4+20151223.gitfa8646d.1-2_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2) ...
Selecting previously unselected package libssh2-1:amd64.
Preparing to unpack .../15-libssh2-1_1.8.0-2.1_amd64.deb ...
Unpacking libssh2-1:amd64 (1.8.0-2.1) ...
Selecting previously unselected package libcurl4:amd64.
Preparing to unpack .../16-libcurl4_7.64.0-4_amd64.deb ...
Unpacking libcurl4:amd64 (7.64.0-4) ...
Selecting previously unselected package curl.
Preparing to unpack .../17-curl_7.64.0-4_amd64.deb ...
Unpacking curl (7.64.0-4) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../18-libsasl2-modules_2.1.27+dfsg-1_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.27+dfsg-1) ...
Selecting previously unselected package publicsuffix.
Preparing to unpack .../19-publicsuffix_20190415.1030-1_all.deb ...
Unpacking publicsuffix (20190415.1030-1) ...
Setting up libkeyutils1:amd64 (1.6-6) ...
Setting up libpsl5:amd64 (0.20.2-2) ...
Setting up libsasl2-modules:amd64 (2.1.27+dfsg-1) ...
Setting up libnghttp2-14:amd64 (1.36.0-2+deb10u1) ...
Setting up krb5-locales (1.17-3) ...
Setting up libldap-common (2.4.47+dfsg-3+deb10u1) ...
Setting up libkrb5support0:amd64 (1.17-3) ...
Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg-1) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2) ...
Setting up libk5crypto3:amd64 (1.17-3) ...
Setting up libsasl2-2:amd64 (2.1.27+dfsg-1) ...
Setting up libssh2-1:amd64 (1.8.0-2.1) ...
Setting up libkrb5-3:amd64 (1.17-3) ...
Setting up openssl (1.1.1d-0+deb10u2) ...
Setting up publicsuffix (20190415.1030-1) ...
Setting up libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u1) ...
Setting up ca-certificates (20190110) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Updating certificates in /etc/ssl/certs...
128 added, 0 removed; done.
Setting up libgssapi-krb5-2:amd64 (1.17-3) ...
Setting up libcurl4:amd64 (7.64.0-4) ...
Setting up curl (7.64.0-4) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for ca-certificates (20190110) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container 0cd297b35d4c
---> 43b25b2c55b6
Step 3/3 : HEALTHCHECK --interval=5s --timeout=3s CMD curl -fs http://localhost/ || exit 1
---> Running in 91dd264508e7
Removing intermediate container 91dd264508e7
---> 22628d6caa61
Successfully built 22628d6caa61
Successfully tagged myweb:v1
-->@coder:~/myninx$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
myweb v1 22628d6caa61 20 seconds ago 134MB
myip latest fec6dab28edf 20 minutes ago 139MB
ngingx v3 4afd6b31fab7 2 hours ago 126MB
nginx v2 50776ea0e5a4 3 hours ago 126MB
ubuntu 16.04 56bab49eef2e 7 days ago 123MB
nginx latest 231d40e811cd 11 days ago 126MB
alpine latest 965ea09ff2eb 6 weeks ago 5.55MB
centos latest 0f3e07c0138f 2 months ago 220MB
ansible/ubuntu14.04-ansible latest 4621d4fe2959 4 years ago 461MB
-->@coder:~/myninx$ docker run -d --name web -p 80:80 myweb:v1
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create?name=web: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
-->@coder:~/myninx$ docker container ls
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/json: dial unix /var/run/docker.sock: connect: permission denied
-->@coder:~/myninx$ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a279c8cb0430 nginx:v2 "nginx -g 'daemon of…" 3 hours ago Up 3 hours 0.0.0.0:81->80/tcp web2
e188b46041a5 nginx "nginx -g 'daemon of…" 3 hours ago Up 3 hours 0.0.0.0:80->80/tcp webserver
-->@coder:~/myninx$ sudo docker container stop web2
web2
-->@coder:~/myninx$ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e188b46041a5 nginx "nginx -g 'daemon of…" 3 hours ago Up 3 hours 0.0.0.0:80->80/tcp webserver
-->@coder:~/myninx$ sudo docker container stop webserver
webserver
-->@coder:~/myninx$ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
-->@coder:~/myninx$ sudo docker run -d --name web -p 80:80 myweb:v1
5a2a21ea4579603a94690ba31a50f09a6484042b91a71839c1a4eda0d89865c1
-->@coder:~/myninx$ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5a2a21ea4579 myweb:v1 "nginx -g 'daemon of…" 7 seconds ago Up 6 seconds (healthy) 0.0.0.0:80->80/tcp web
-->@coder:~/myninx$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5a2a21ea4579 myweb:v1 "nginx -g 'daemon of…" 20 seconds ago Up 19 seconds (healthy) 0.0.0.0:80->80/tcp web
-->@coder:~/myninx$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5a2a21ea4579 myweb:v1 "nginx -g 'daemon of…" 57 seconds ago Up 56 seconds (healthy) 0.0.0.0:80->80/tcp web
-->@coder:~/myninx$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5a2a21ea4579 myweb:v1 "nginx -g 'daemon of…" About a minute ago Up 59 seconds (healthy) 0.0.0.0:80->80/tcp web
-->@coder:~/myninx$ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5a2a21ea4579 myweb:v1 "nginx -g 'daemon of…" About a minute ago Up About a minute (healthy) 0.0.0.0:80->80/tcp web
-->@coder:~/myninx$ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5a2a21ea4579 myweb:v1 "nginx -g 'daemon of…" About a minute ago Up About a minute (healthy) 0.0.0.0:80->80/tcp web
-->@coder:~/myninx$ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5a2a21ea4579 myweb:v1 "nginx -g 'daemon of…" 2 minutes ago Up 2 minutes (healthy) 0.0.0.0:80->80/tcp web
-->@coder:~/myninx$ sudo docker container ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5a2a21ea4579 myweb:v1 "nginx -g 'daemon of…" 2 minutes ago Up 2 minutes (healthy) 0.0.0.0:80->80/tcp web
-->@coder:~/myninx$ sudo docker inspect --format '{{json .State.Health}}' web | python -m json.tool
{
"FailingStreak": 0,
"Log": [
{
"End": "2019-12-04T16:25:23.874609354+08:00",
"ExitCode": 0,
"Output": "\n\n\nWelcome to nginx! \n\n\n\nWelcome to nginx!
\n
If you see this page, the nginx web server is successfully installed and\nworking. Further configuration is required.
\n\nFor online documentation and support please refer to\nnginx.org.
\nCommercial support is available at\nnginx.com.
\n\nThank you for using nginx.
\n\n\n",
"Start": "2019-12-04T16:25:23.607987198+08:00"
},
{
"End": "2019-12-04T16:25:29.148998934+08:00",
"ExitCode": 0,
"Output": "\n\n\nWelcome to nginx! \n\n\n\nWelcome to nginx!
\nIf you see this page, the nginx web server is successfully installed and\nworking. Further configuration is required.
\n\nFor online documentation and support please refer to\nnginx.org.
\nCommercial support is available at\nnginx.com.
\n\nThank you for using nginx.
\n\n\n",
"Start": "2019-12-04T16:25:28.887414062+08:00"
},
{
"End": "2019-12-04T16:25:34.415802722+08:00",
"ExitCode": 0,
"Output": "\n\n\nWelcome to nginx! \n\n\n\nWelcome to nginx!
\nIf you see this page, the nginx web server is successfully installed and\nworking. Further configuration is required.
\n\nFor online documentation and support please refer to\nnginx.org.
\nCommercial support is available at\nnginx.com.
\n\nThank you for using nginx.
\n\n\n",
"Start": "2019-12-04T16:25:34.162626484+08:00"
},
{
"End": "2019-12-04T16:25:39.692346087+08:00",
"ExitCode": 0,
"Output": "\n\n\nWelcome to nginx! \n\n\n\nWelcome to nginx!
\nIf you see this page, the nginx web server is successfully installed and\nworking. Further configuration is required.
\n\nFor online documentation and support please refer to\nnginx.org.
\nCommercial support is available at\nnginx.com.
\n\nThank you for using nginx.
\n\n\n",
"Start": "2019-12-04T16:25:39.430706631+08:00"
},
{
"End": "2019-12-04T16:25:44.989734301+08:00",
"ExitCode": 0,
"Output": "\n\n\nWelcome to nginx! \n\n\n\nWelcome to nginx!
\nIf you see this page, the nginx web server is successfully installed and\nworking. Further configuration is required.
\n\nFor online documentation and support please refer to\nnginx.org.
\nCommercial support is available at\nnginx.com.
\n\nThank you for using nginx.
\n\n\n",
"Start": "2019-12-04T16:25:44.705825687+08:00"
}
],
"Status": "healthy"
}
-->@coder:~/myninx$ sudo docker search npm
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
mkenney/npm A simple Node container with various wrapper… 50 [OK]
folha/npm-proxy-cache HTTP/HTTPS caching proxy for work with npm u… 2 [OK]
resinci/npm-x86_64-node4 1
resinci/npm-x86_64-node8 1
ymedlop/npm-cache-resource a Concourse resource for caching dependencie… 1 [OK]
tsumiki/npm_run_build npm install -> npm run build 1
resinci/npm-x86_64-ubuntu-node8 1
theyorkshiredev/npm-container Alpine image with NPM and Node installed 1 [OK]
resinci/npm-x86_64-ubuntu-node10 0
arwineap/npm-cache-resource npm-cache-resource with added autoconf 0 [OK]
resinci/npm-x86_64-alpine-node10 0
resinci/npm-x86_64-ubuntu-node6 0
npmjs/npm-auth-ws The plugin-based authentication and authoriz… 0
resinci/npm-x86_64-node9 0
resinci/npm-x86_64-ubuntu-node4 0
lloydg/npm-resource 0
resinci/npm-x86_64-node10 0
resinci/npm-x86-ubuntu-node8 0
resinci/npm-x86_64-ubuntu-node9 0
idahobean/npm-resource https://github.com/idahobean/npm-resource 0
resinci/npm-x86_64-node6 0
cato1971/npm-cache-resource 0
mvila/npm-addict npm addict automated build 0 [OK]
ripa1993/npm-cache-resource 0
bobvanlooveren/npm-cache-resource npm-cache-resource based on the standard nod… 0
-->@coder:~/myninx$ df -h
文件系统 容量 已用 可用 已用% 挂载点
udev 1.5G 0 1.5G 0% /dev
tmpfs 298M 8.6M 290M 3% /run
/dev/mapper/ubuntu--vg-root 18G 6.7G 11G 40% /
tmpfs 1.5G 0 1.5G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.5G 0 1.5G 0% /sys/fs/cgroup
/dev/sda1 720M 208M 476M 31% /boot
tmpfs 298M 0 298M 0% /run/user/0
-->@coder:~/myninx$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 20G 0 disk
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 19.3G 0 part
│ ├─ubuntu--vg-swap_1 253:1 0 976M 0 lvm [SWAP]
│ └─ubuntu--vg-root 253:0 0 18.3G 0 lvm /
└─sda1 8:1 0 731M 0 part /boot
-->@coder:~/myninx$ man docker history
DOCKER(1) DOCKER(1)
NAME
docker-history - Show the history of an image
SYNOPSIS
docker history [OPTIONS] IMAGE
DESCRIPTION
Alias for docker image history.
OPTIONS
--format=""
Pretty-print images using a Go template
-->@coder:~/myninx$ sudo docker history nginx
IMAGE CREATED CREATED BY SIZE COMMENT
231d40e811cd 11 days ago /bin/sh -c #(nop) CMD ["nginx" "-g" "daemon… 0B
11 days ago /bin/sh -c #(nop) STOPSIGNAL SIGTERM 0B
11 days ago /bin/sh -c #(nop) EXPOSE 80 0B
11 days ago /bin/sh -c ln -sf /dev/stdout /var/log/nginx… 22B
11 days ago /bin/sh -c set -x && addgroup --system -… 57.1MB
11 days ago /bin/sh -c #(nop) ENV PKG_RELEASE=1~buster 0B
11 days ago /bin/sh -c #(nop) ENV NJS_VERSION=0.3.7 0B
11 days ago /bin/sh -c #(nop) ENV NGINX_VERSION=1.17.6 0B
11 days ago /bin/sh -c #(nop) LABEL maintainer=NGINX Do… 0B
11 days ago /bin/sh -c #(nop) CMD ["bash"] 0B
11 days ago /bin/sh -c #(nop) ADD file:bc8179c87c8dbb3d9… 69.2MB
-->@coder:~/myninx$ free -m
total used free shared buff/cache available
Mem: 2978 219 687 8 2071 2496
Swap: 975 0 975
-->@coder:~/myninx$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
myweb v1 22628d6caa61 15 minutes ago 134MB
myip latest fec6dab28edf 35 minutes ago 139MB
ngingx v3 4afd6b31fab7 2 hours ago 126MB
nginx v2 50776ea0e5a4 3 hours ago 126MB
ubuntu 16.04 56bab49eef2e 7 days ago 123MB
nginx latest 231d40e811cd 11 days ago 126MB
alpine latest 965ea09ff2eb 6 weeks ago 5.55MB
centos latest 0f3e07c0138f 2 months ago 220MB
ansible/ubuntu14.04-ansible latest 4621d4fe2959 4 years ago 461MB
-->@coder:~/myninx$ sudo docker images alpine
REPOSITORY TAG IMAGE ID CREATED SIZE
alpine latest 965ea09ff2eb 6 weeks ago 5.55MB
-->@coder:~/myninx$ sudo docker save alpine | gzip > alpine-latest.tar.gz
-->@coder:~/myninx$ ls
alpine-latest.tar.gz Dockerfile Dockerfile.ip
-->@coder:~/myninx$ sudo docker save alpine | bzip2 | pv | ssh [email protected] 'cat | docker load'
[1]+ 已停止 sudo docker save alpine | bzip2 | pv | ssh [email protected] 'cat | docker load'
-->@coder:~/myninx$ 程序“pv”尚未安装。 您可以使用以下命令安装:
sudo apt install pv
^C
-->@coder:~/myninx$ sudo whereis pv
pv:
-->@coder:~/myninx$ sudo apt-get install pv
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
linux-headers-4.15.0-45 linux-headers-4.15.0-45-generic linux-image-4.15.0-45-generic linux-modules-4.15.0-45-generic linux-modules-extra-4.15.0-45-generic
snapd-login-service
使用'sudo apt autoremove'来卸载它(它们)。
下列【新】软件包将被安装:
pv
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 1 个软件包未被升级。
需要下载 46.8 kB 的归档。
解压缩后会消耗 170 kB 的额外空间。
获取:1 http://mirrors.ustc.edu.cn/ubuntu xenial/universe amd64 pv amd64 1.6.0-1 [46.8 kB]
已下载 46.8 kB,耗时 6秒 (7,196 B/s)
正在选中未选择的软件包 pv。
(正在读取数据库 ... 系统当前共安装有 256425 个文件和目录。)
正准备解包 .../archives/pv_1.6.0-1_amd64.deb ...
正在解包 pv (1.6.0-1) ...
正在处理用于 man-db (2.7.5-1) 的触发器 ...
正在设置 pv (1.6.0-1) ...
-->@coder:~/myninx$ sudo docker save alpine | bzip2 | pv | ssh [email protected] 'cat | docker load'
The authenticity of host '192.168.114.133 (192.168.114.133)' can't be established.
ECDSA key fingerprint is SHA256:MUD4Nv3v9qHNdhUL4bEoUXn46AXqGFD80C6WsCmal2Y.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.114.133' (ECDSA) to the list of known hosts.
[email protected]'s password:
2.63MiB 0:00:16 [ 166KiB/s] [ <=> ]
Loaded image: alpine:latest
[END] 2019/12/4 16:42:21
#注意: 以下在114.133机器上验证docker 接收的镜像
[root@cent76 ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
alpine latest 965ea09ff2eb 6 weeks ago 5.55MB