nháp (1)

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)
Posted in take note.