• Skip to content
  • Skip to primary sidebar
  • Skip to footer
…

...

cuộc sống là phải luôn khám phá.

  • Home
  • Music from Box
  • Các trang web hay
  • Giới thiệu
Bạn đang ở đây:Trang chủ / Tin tức / nháp (1)

nháp (1)

25/04/2019 tác giả: foxdie

https://www.slant.co/topics/1177/~best-torrent-clients#3

https://source.unsplash.com

Hit F5 to refresh images from Unsplash

https://docs.docker.com/install/linux/docker-ce/ubuntu/

apt-cache madison docker-ce
sudo apt-get install docker-ce= docker-ce-cli= containerd.io
sudo docker run hello-world

https://docs.docker.com/engine/reference/commandline/container_ls/

docker containerManage containers
docker container ls [OPTIONS]
Name, shorthand DefaultDescription
--all , -aShow all containers
(default shows just running)
--filter , -fFilter output based on conditions provided
--formatPretty-print containers using a Go template
--last , -n-1Show n last created containers
(includes all states)
--latest , -lShow the latest created container (includes all states)
--no-truncDon’t truncate output
--quiet , -qOnly display numeric IDs
--size , -sDisplay total file sizes

https://docs.docker.com/engine/reference/commandline/container_cp/


docker container cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH

Example:

docker container cp dropy:dropy /quan

https://docs.docker.com/engine/reference/commandline/run/

Run a command in a new container

--publish , -pPublish a container’s port(s) to the host
--nameAssign a name to the container

Example:

docker run --name droppy -p 127.0.0.1:8989:8989 silverwind/droppy

https://docs.docker.com/engine/reference/commandline/rm/

docker rm [OPTIONS] CONTAINER [CONTAINER...]
Name, shorthandDefaultDescription
--force , -fForce the removal of a running container
(uses SIGKILL)
--link , -lRemove the specified link
--volumes , -vRemove the volumes associated with the container

https://docs.docker.com/engine/reference/commandline/start/

docker start [OPTIONS] CONTAINER [CONTAINER...]

Example:

docker start droppy
Create adds a writeable container on top of your image and sets it up for running whatever command you specified in your CMD. The container ID is reported back but it’s not started.

Start will start any stopped containers. This includes freshly created containers.

Run is a combination of create and start. It creates the container and starts it.

https://nickjanetakis.com/blog/comparing-virtual-machines-vs-docker-containers

Continue to … nháp (2)

Reader Interactions

Primary Sidebar

Chuyên mục

  • fun
  • testing
  • Tin tức

The Coronavirus Papers unlocked: 5,352 scientific articles covering the coronavirus

Dividing the world’s scientists with a paywall in the middle of a global humanitarian crisis is an unacceptable and unforgivable act of criminal greed. In the developing world the price for a single article can amount to as much as half a week’s salary for a physician.

mathjax

Mathjax: Display math formula for website

Simple integration Adding MathJax to your web pages is easy to do. If you are using a Content Management System (like WordPress, Moodle, or Drupal) to generate your web site, there may be a plugin to add MathJax to your site already, e.g., for WordPress or Drupal. You may need to download or activate the plugin, if one […]

Raspberry Pi 4: Hãy cùng tìm hiểu một số vấn đề trong lúc sử dụng (phần 1)

Ở phần trước đã giới thiệu về cách cài đặt hệ điều hành Raspbian đơn giản nhất, bây giờ trong quá trình sử dụng thì chắc chắn chúng ta sẽ gặp phải nhiều vấn đề cần giải quyết để máy vận hành được hiệu quả. Bài viết dưới đây sẽ ghi lại cách giải quyết […]

Footer

DMCA.com Protection Status

Copyright ©2021 · pquan.info - All Rights Reserved ·