14
scripts/docker/htop.sh
Executable file
14
scripts/docker/htop.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# shellcheck source=../lib/common.sh
|
||||
source "$(dirname "$0")/../lib/common.sh"
|
||||
# shellcheck source=../lib/docker.sh
|
||||
source "$(dirname "$0")/../lib/docker.sh"
|
||||
|
||||
require_container "$LM_CONTAINER"
|
||||
echo "Giới hạn container:"
|
||||
print_container_limits "$LM_CONTAINER"
|
||||
echo
|
||||
echo "htop (q để thoát)..."
|
||||
exec "${DOCKER[@]}" exec -it "$LM_CONTAINER" htop
|
||||
Reference in New Issue
Block a user