美文网首页
Mac install ubuntu image

Mac install ubuntu image

作者: 谢昆明 | 来源:发表于2017-04-07 09:11 被阅读97次

1. install docker for mac

https://www.docker.com

2. search ubuntu image

docker search ubuntu

NAME DESCRIPTION STARS OFFICIAL AUTOMATED
ubuntu Ubuntu is a Debian-based Linux operating s... 5817 [OK]
rastasheep/ubuntu-sshd Dockerized SSH service, built on top of of... 78 [OK]
ubuntu-upstart Upstart is an event-based replacement for ... 71 [OK]
consol/ubuntu-xfce-vnc Ubuntu container with "headless" VNC sessi... 46 [OK]
ubuntu-debootstrap debootstrap --variant=minbase --components... 30 [OK]
torusware/speedus-ubuntu Always updated official Ubuntu docker imag... 27 [OK]
nuagebec/ubuntu Simple always updated Ubuntu docker images... 18 [OK]
nickistre/ubuntu-lamp LAMP server on Ubuntu 16 [OK]
nimmis/ubuntu This is a docker images different LTS vers... 7 [OK]
darksheer/ubuntu Base Ubuntu Image -- Updated hourly 2 [OK]
maxexcloo/ubuntu Base image built on Ubuntu with init, Supe... 2 [OK]
admiringworm/ubuntu Base ubuntu images based on the official u... 1 [OK]
jordi/ubuntu Ubuntu Base Image 1 [OK]
forumi0721ubuntux64/ubuntu-x64-dev-armbian ubuntu-x64-dev-armbian 0 [OK]
teamrock/ubuntu TeamRock's Ubuntu image configured with AW... 0 [OK]
forumi0721ubuntuarmhf/ubuntu-armhf-dev ubuntu-armhf-dev 0 [OK]
forumi0721ubuntuaarch64/ubuntu-aarch64-dev ubuntu-aarch64-dev 0 [OK]
vcatechnology/ubuntu A Ubuntu image that is updated daily 0 [OK]
forumi0721ubuntux64/ubuntu-x64-dev ubuntu-x64-dev 0 [OK]
forumi0721ubuntux64/ubuntu-x64-dev-android ubuntu-x64-dev-android 0 [OK]
datenbetrieb/ubuntu custom flavor of the official ubuntu base ... 0 [OK]
labengine/ubuntu Images base ubuntu 0 [OK]
lynxtp/ubuntu https://github.com/lynxtp/docker-ubuntu 0 [OK]
konstruktoid/ubuntu Ubuntu base image 0 [OK]
webhippie/ubuntu Docker images for ubuntu 0 [OK]

3. choose and install first image

docker install ubuntu

4. Run a Docker Image as a Container

4.1 Foreground mode

docker run -it ubuntu /bin/bash

https://docs.docker.com/engine/reference/run/
-t : Allocate a pseudo-tty
-i : Keep STDIN open even if not attached

4.2 Detached mode

  1. docker run -d -it ubuntu /bin/bash
  2. docker ps

CONTAINER ID
c47513b1c790

  1. docker attach c47513b1c790
    https://docs.docker.com/engine/reference/commandline/attach/

4.3 alias name

docker run --name test -it ubuntu /bin/bash

5. exit

Control + D

打赏

如果这篇文章解决了您的问题,让我买根烟抽抽。

支付宝.jpg 微信.jpg

相关文章

网友评论

      本文标题:Mac install ubuntu image

      本文链接:https://www.haomeiwen.com/subject/rxliottx.html