docker cli connect to container code example Example: docker attach docker attach [OPTIONS] CONTAINER