Start Docker and go to Docker

Source: Internet
Author: User
Tags docker ps docker hub docker run
[root@i-k11xnd1o ~]# Docker images REPOSITORY TAG IMAGE ID CREATED  SIZE Docker.io/hello-world latest 1815c82652c0 5 weeks ago 1.84 KB Docker.io/blockchain101/ethereum-geth 1.6.5 1e23e07389b2 5 weeks ago 1.534 GB [root@i-k
11xnd1o ~]# Docker run--name Hello Hello-world Hello from docker!

This message shows the your installation appears to be working correctly.
 To generate this message, Docker took the following steps:1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "Hello-world" image from the Docker Hub. 3. The Docker daemon created a new container from this image which runs the executable that produces the output of you AR
 e currently reading.

4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something + ambitious, you can run an Ubuntu contaIner with: $ docker run-it Ubuntu bash Share images, automate workflows, and more with a free Docker Id:https://cloud . docker.com/for more examples and ideas, visit:https://docs.docker.com/engine/userguide/[root@i-k11xnd1o ~]# Docker               PS CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS                  NAMES [root@i-k11xnd1o ~]# Docker ps-a CONTAINER ID IMAGE COMMAND                         CREATED STATUS PORTS NAMES 4c7a7f772b51 Hello-world        "/hello" Seconds ago Exited (0) seconds ago Hello afffac98fb68                       blockchain101/ethereum-geth:1.6.5 "Bash-c"./rungeth.s "Hours ago Exited (137) hours ago        Geth-cluster0 92A18ADB1ACD blockchain101/ethereum-geth:1.6.5 "bash-c"./checkboot "hours ago Exited (137)-hoUrs ago Geth-cluster1 2efa9f365613 Hello-world "/hello" Hours ago Exited (0) hours ago Furious_keller [root@i-k11xnd1o ~]# Docker start AF                  ffac98fb68 afffac98fb68 [root@i-k11xnd1o ~]# Docker PS CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES afffac98fb68 BLOCKC hain101/ethereum-geth:1.6.5 "Bash-c"./rungeth.s "hours ago up 7 seconds 0.0.0.0:8200-8210->8200- 8210/tcp Geth-cluster0

Start the container and automatically go into the container directory.

[root@i-k11xnd1o ~] #docker exec-it afffac98fb68/bin/bash
root@afffac98fb68:/ethutil# ll Total
Drwxrwxrwx  2 root root  165 June 15:36./
drwxr-xr-x root root  322 Jul 20 02:31. /
-rwxrwxrwx  1 root root,   June checkbootnode.sh*
-rwxrwxrwx  1 root root 1282 June  9 1 4:26 gethaccts.sh*
-rwxrwxrwx  1 root root 2527 June  9 15:08 gethcluster.sh*
-rwxrwxrwx  1 root Root 2759 June 15:30 gethnodes.sh*
-rwxrwxrwx  1 root root 3230 June 06:56 gethup.sh*-rwxrwxrwx  1 Root root  9 14:26 killgeth.sh*
-rwxrwxrwx  1 root root  9 14:26 nodeinfo.js*
-rwxrwxrwx  1 root root 1415 June 15:34 rungeth.sh*
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.