Docker doesn't remove volumes without -v causing high disk space usage.
This commit is contained in:
parent
f6a7efae0c
commit
87b90212a7
|
@ -169,6 +169,7 @@ gulp.task('docker-compose', async () => {
|
|||
'salixPassword=${salixPassword}'
|
||||
],
|
||||
container_name: `\${BRANCH_NAME}-${service.name}`,
|
||||
volumes: ["/config:/app"],
|
||||
image: `${service.name}:\${TAG}`,
|
||||
build: {
|
||||
context: `./services`,
|
||||
|
@ -416,7 +417,7 @@ gulp.task('watch', function() {
|
|||
*/
|
||||
gulp.task('docker', async () => {
|
||||
try {
|
||||
await execP('docker rm -f dblocal');
|
||||
await execP('docker rm -fv dblocal');
|
||||
} catch (e) {}
|
||||
|
||||
await runSequenceP('docker-run');
|
||||
|
@ -428,7 +429,7 @@ gulp.task('docker', async () => {
|
|||
*/
|
||||
gulp.task('docker-build', async () => {
|
||||
try {
|
||||
await execP('docker rm -f dblocal');
|
||||
await execP('docker rm -fv dblocal');
|
||||
} catch (e) {}
|
||||
try {
|
||||
await execP('docker rmi dblocal:latest');
|
||||
|
|
Loading…
Reference in New Issue