Linux PTY - How docker attach and docker exec Commands Work Inside
Have you ever been wondering how docker (or kubectl) attach
command is implemented under the hood? If so, you're in the right place! This article covers the basics of Linux pseudoterminal capabilities and continuously shows how attach-like feature can be implemented in a ridiculously small amount of code.