It looks like you've entered into a shell session inside a Docker container running the Alpine Linux image. The prompt ^[[3;5R is not a command prompt but likely a result of some keyboard input or escape sequences.
Here's what's happening:
docker run -t alpine:latest sh
This command starts a new Docker container based on the Alpine Linux image and runs the sh shell inside it. The -t
flag allocates a pseudo-TTY for the container, allowing interactive input.
^[[3;5R: This is not a typical shell prompt. It appears to be an escape sequence or some other kind of input that has been entered into the shell. It might be a result of pressing some keys unintentionally, especially if your terminal emulator has special key bindings.
To exit the shell without restarting the terminal or the container, you can try the following:
Press Ctrl + C: This is a common way to interrupt a running process in Unix-like systems. It might break you out of whatever input mode you're in and return you to the shell prompt.
Press Ctrl + D: This sends an End-of-File (EOF) signal, which typically terminates the current shell session. If you're already at the shell prompt, it might exit the session.
Try pressing Enter a few times: Sometimes, when the terminal gets stuck, sending some empty lines might reset it or bring you back to a recognizable state.
If none of the above works, you might need to close the terminal tab or window and start a new one. This should not affect the Docker container itself, which will continue running in the background until explicitly stopped or removed.
If you continue to have issues, double-check any custom key bindings or configurations you might have in your terminal emulator, as they could be causing unexpected behavior.