2020년 9월 7일 월요일

A running instance of an image is a container.

An instance of an image is called a container. You have an image, which is a set of layers as you describe. If you start this image, you have a running container of this image. You can have many running containers of the same image.


You can see all your images with docker images whereas you can see your running containers with docker ps (and you can see all containers with docker ps -a).


So a running instance of an image is a container.


https://stackoverflow.com/a/23736802


Container ID is used as a hostname. See the image below:



2020년 6월 21일 일요일

/usr/local/ 과 /opt/


/opt and /usr/local directories
/opt is for third-party applications that don't rely on any dependencies outside the scope of said package. /usr/local is for packages installed on this machine outside the scope of the distribution package manager.
참조: https://askubuntu.com/a/34922/689555


I would install third-party binary-only packages to /opt.
Anything you build yourself from source I would put in /usr/local.
참조: https://askubuntu.com/a/34894/689555


사용자 프로필의 경우 /usr/local/, 공유 사용자의 경우 /opt/
참조: https://developer.android.com/studio/install


2020년 4월 1일 수요일

Mac terminal 단축키

급할때 불편한 것. 시간날때.




Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clears the line before cursor position (or the entire line if you are at the end of the line)
Ctrl + H Alternative to using backspace
Ctrl + W Delete the word before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
Alt + F Move cursor forward one word on the current line
Alt + B Move cursor backward one word on the current line


http://stuffthatinterests.me/articles/move-the-os-x-terminal-cursor-position-by-clicking-the-mouse
http://archive.is/lOfZj