docker install ubuntu

docker install ubuntu

reference(http://www.docker.org.cn/book/docker/docker-search-image-6.html)
  1. Register at https://hub.docker.com, search for the Linux system you want, search ubuntu here.

  1. On the search results page, click DETAILS of the first result. This is the official image provided by ubuntu.

Provides a command to get the ubuntu image in docker. docker pull ubuntu.
3. You can also search ubuntu.docker search ubuntu through the command. The first one is the official image provided by ubuntu.

  1. Download the mirror. docker pull ubuntu. If the internet speed is slow, wait a while.

  1. Check the downloaded image. docker images.

  1. Start the container. docker run -t -i ubuntu:latest //bin/bash

Start a bash terminal to allow users to interact. The -t option lets Docker allocate a pseudo-tty and bind it to the standard input of the container, and -i keeps the standard input of the container open. In interactive mode, users can enter commands through the created terminal, for example:

Access ubuntu via ssh.

  1. Upgrade apt-get. apt-get update

  1. Install openssh. apt-get install openssh-server openssh-client

  1. set password

  1. Exit the container. exit
  2. View the current container ID

  1. Save changes.

  1. View all current mirrors

  1. Background process running

  1. SSH connection

Recommended Posts

ubuntu18.04 install docker
docker install ubuntu
Install docker on Ubuntu
Install Docker on ubuntu18.04
Install Docker on Ubuntu18
Docker practice (1): install Docker on Ubuntu 16.04
Install Docker on Ubuntu 18.04 offline
ubuntu18.04 install python2
CentOS 7 install Docker
CentOS7 install Docker
ubuntu12.04 install python3
Ubuntu install guide
ubuntu install nodejs
Install and configure Docker in Ubuntu
Docker ubuntu: install python-PIL-image environment on 14.04
ubuntu 16 install asp.net
ubuntu install Jenkins
ubuntu install elasticsearch
Centos7 install docker18
centos7 install docker
ubuntu16.0.1 install pagoda
CentOS 6 install Docker
Centos8 install Docker
ubuntu18.04 install python
ubuntu 18.04 install teamviewer
ubuntu install sendmail
Ubuntu uses Docker to install Gitlab
How to install Docker Compose on Ubuntu 18.04
Linux install Docker and run Ubuntu system
Install apache+PHP under Ubuntu
Install Docker on Centos7
install vscode on ubuntu18
Install node.js under Ubuntu
Install mysql-pytho in Ubuntu
ubuntu install zsh terminal
Install Redis on Ubuntu
Install R4 on ubuntu20
Install nvtop on Ubuntu 18.04
Install postgresql-10 on Ubuntu 18.04
Install python3.6 under Ubuntu 16.04
CentOS 7 install Docker service
Ubuntu18.04 install opencv 3.2.0 solution
Install mysql under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
Install nodejs10 on Ubuntu16
ubuntu install harbor warehouse
Install mysql on Ubuntu 14.04
Ubuntu16.04 install Mongodb tutorial
Install Django on ubuntu
Install Pytorch+CUDA on Ubuntu 16.04
2018-09-11 Install arduino under Ubuntu
Install Python3 on Ubuntu 14.04
Ubuntu18.04 install Asterisk16.10 + FreePBX15.0
Ubuntu19 install MySQL pit
ubuntu16.04 install node.js, npm
Install rJava on Ubuntu18
Install JDK10+ on Ubuntu
CentOS 8-dnf install docker
pcduino ubuntu install os