You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Container console exec a custom command
If process finishes within 1 second, Red error "no such exec" will show and go back to Disconnected state.
However, if process finishes more than 1 second,
No error but not go back to Disconnected state.
Expected behavior
No Red error, and back to Disconnected state automatically
Steps to reproduce the issue:
Steps to reproduce the behavior:
Go to Container Console
Tick Custom Command
Enter custom command ps (should finish immediately)
The command is executed successfully
See red error "no such exec"
Also try custom command sleep 1 (should finish in 1 second), same error will occur
But if try custom command sleep 2 (should finish in 2 seconds), no error but cannot go back to Disconnected state automatically.
Technical details:
Portainer version: 1.19.2
Docker version (managed by Portainer): 18.06
Platform (windows/linux): Ubuntu 16.04
Command used to start Portainer (docker run -p 9000:9000 portainer/portainer):
This discussion was converted from issue #2525 on July 27, 2023 04:24.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug description
Container console exec a custom command
If process finishes within 1 second,
Red error "no such exec" will show and go back to Disconnected state.
However, if process finishes more than 1 second,
No error but not go back to Disconnected state.
Expected behavior
No Red error, and back to Disconnected state automatically
Steps to reproduce the issue:
Steps to reproduce the behavior:
ps(should finish immediately)sleep 1(should finish in 1 second), same error will occursleep 2(should finish in 2 seconds), no error but cannot go back to Disconnected state automatically.Technical details:
docker run -p 9000:9000 portainer/portainer):Beta Was this translation helpful? Give feedback.
All reactions