must be running to attach to it in docker code example Example: docker attach docker attach [OPTIONS] CONTAINER