docker

created : 2020-04-07T11:34:43+00:00
modified : 2020-06-27T06:20:57+00:00

tool docker
  • install

    curl -fsSL https://get.docker.com/ sudo sh
  • user 추가

    sudo useradd {username} -m -s /bin/bash -G docker

  • docker container run

    docker run [OPTIONS] IMAGE[:TAG @DIGEST] [COMMAND] [ARG…]

-d : detached mode (background mode)

-p : port forwarding from host port to container

-v : mount host directory

-name : configure container name

-rm : remove automatically when process terminated

-it : -i + -t ⇒ interactive terminal

-link : container link

  • sample ubuntu 18.04 image

    docker run ubuntu:18.04

    uml docker