Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
centos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platyhouse
centos
Commits
f052cf9c
Commit
f052cf9c
authored
Nov 15, 2019
by
root
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added pty_docker_save.sh
parents
Pipeline
#1
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
pty_docker_save.sh
pty_docker_save.sh
+24
-0
No files found.
pty_docker_save.sh
0 → 100755
View file @
f052cf9c
#!/usr/bin/php
<?php
$containerName
=
$argv
[
1]
;
if
(!
$containerName
)
{
echo
"pty_docker_save.sh version 1.0
\n
"
;
echo
"Copyright (C) 2019 by cpueblo, PlatyHouse Co.,LTD.
\n
"
;
echo
"Web site: https://www.platyhouse.com/
\n\n
"
;
echo
"Usage ./pty_docker_save.sh <containerName>
\n
"
;
echo
"=================================
\n
"
;
system
(
"docker ps -a --size"
)
;
echo
"=================================
\n
"
;
exit
;
}
$date
=
date
(
"Ymd_His"
)
;
$cmd
=
"docker commit -p {
$containerName
} {
$containerName
}:{
$date
}"
;
echo
"# {
$cmd
}
\n
"
;;
system
(
$cmd
)
;
$cmd
=
"docker save
${
containerName
}
:{
$date
} | gzip > /root/docker_{
$containerName
}_{
$date
}.tgz"
;
echo
"# {
$cmd
}
\n
"
;;
system
(
$cmd
)
;
echo
"finished"
;
?>
platyhouse
@platyhouse
mentioned in commit
8587004b
·
Dec 16, 2025
mentioned in commit
8587004b
mentioned in commit 8587004bfbebb2ceff13804bc1eea04727f6a285
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment