- curl -L "https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Install the docker-compose.
# sudo curl -L "https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 633 100 633 0 0 2852 0 --:--:-- --:--:-- --:--:-- 2851
100 11.6M 100 11.6M 0 0 3966k 0 0:00:03 0:00:03 --:--:-- 6062k
-L : to list files and directories, tells the system to follow any redirects, in case the file has been moved.
-o : denote the name of the output file. In this case, it changes the filename to docker-compose so you can easily find it when needed
- chmod +x /usr/local/bin/docker-compose
chmod : Change Mode, it modifies Linux file permission. In Linux, access to the files is managed through the file permissions, attributes, and ownership. This ensures that only authorized users and processes can access files and directories
chmod +x : Change Mode +Executable, Grant the authority to every users
- man chmod
CHMOD(1) User Commands CHMOD(1)
NAME
chmod - change file mode bits
SYNOPSIS
chmod [OPTION]... MODE[,MODE]... FILE...
chmod [OPTION]... OCTAL-MODE FILE...
chmod [OPTION]... --reference=RFILE FILE...
DESCRIPTION
This manual page documents the GNU version of chmod. chmod changes the file mode bits of each given file according to mode,
which can be either a symbolic representation of changes to make, or an octal number representing the bit pattern for the new
mode bits.
...
man : Manuals, it is used to view a system's reference manuals. It gives users access to manual pages for command-line utilities and tools
- docker-compose --version
docker-compose --version
docker-compose version 1.29.0, build 07737305
'Docker' 카테고리의 다른 글
How to run my python project on the docker (0) | 2021.10.22 |
---|---|
commit, tag, dockerfile, build, filter (0) | 2021.09.13 |
MAC address, VLAN, LAN, -d, --driver, --subnet, --ip-range, -o, (0) | 2021.02.23 |
--net, HWaddr, --net-alias, grep, -c, round-robbin, dig (0) | 2021.02.22 |
network, bridge, host, none (0) | 2021.02.22 |