Differences between revisions 5 and 7 (spanning 2 versions)
Revision 5 as of 2017-01-03 21:59:37
Size: 518
Editor: PieterSmit
Comment:
Revision 7 as of 2017-01-03 22:34:58
Size: 1062
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
      * Flags
     * -t pseudo-TTY
     * -i --interactive
     * --name "NameContainer"
     * --publish=[] format ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort | containerPort
     * -e, --env=[] Set environment variables
     * --add-host=[] Add a custom host-to-IP mapping (host:ip)
     * --rm Automatically remove the container when it exits



Line 20: Line 33:
     {{{ $ docker run -it -v ~/docker:/docker ubuntu:14.04 }}}

     {{{ $ docker run -it -v ~/docker:/docker -v /dev/log:/dev/log ubuntu:14.04 }}}

linux docker notes

  • On Ubuntu
    • install docker
    • add user to docker group, logout and log in again
      •  adduser Me docker 

    • Flags
      • -t pseudo-TTY
      • -i --interactive
      • --name "NameContainer"

      • --publish=[] format ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort | containerPort
      • -e, --env=[] Set environment variables
      • --add-host=[] Add a custom host-to-IP mapping (host:ip)
      • --rm Automatically remove the container when it exits
    • docker search ubuntu:14.04
      •  $ docker search ubuntu:14.04   $ docker search --no-trunc --stars=1 etcd 

    • downloaded images
      •  docker images 

    • run interactively
      •  $ docker run -it ubuntu:14.04 

         $ docker run -it -v ~/docker:/docker ubuntu:14.04 

         $ docker run -it -v ~/docker:/docker -v /dev/log:/dev/log ubuntu:14.04 

    • view running images and historic
      •  $ docker ps -a 

...

docker (last edited 2023-09-21 21:03:25 by PieterSmit)