https://www.slant.co/topics/1177/~best-torrent-clients#3
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 container | Manage containers |
docker container ls [OPTIONS]
Name, shorthand | Default | Description |
--all , -a | Show all containers (default shows just running) | |
--filter , -f | Filter output based on conditions provided | |
--format | Pretty-print containers using a Go template | |
--last , -n | -1 | Show n last created containers (includes all states) |
--latest , -l | Show the latest created container (includes all states) | |
--no-trunc | Don’t truncate output | |
--quiet , -q | Only display numeric IDs | |
--size , -s | Display 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 , -p | Publish a container’s port(s) to the host |
--name | Assign 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, shorthand | Default | Description |
--force , -f | Force the removal of a running container (uses SIGKILL) | |
--link , -l | Remove the specified link | |
--volumes , -v | Remove the volumes associated with the container |
https://docs.docker.com/engine/reference/commandline/start/
docker start [OPTIONS] CONTAINER [CONTAINER...]
Example:
docker start droppy
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)