Docker doesn't remove volumes without -v causing high disk space usage.

This commit is contained in:
Joan Sanchez 2018-05-09 08:33:44 +02:00
parent f6a7efae0c
commit 87b90212a7
1 changed files with 3 additions and 2 deletions

View File

@ -169,6 +169,7 @@ gulp.task('docker-compose', async () => {
'salixPassword=${salixPassword}' 'salixPassword=${salixPassword}'
], ],
container_name: `\${BRANCH_NAME}-${service.name}`, container_name: `\${BRANCH_NAME}-${service.name}`,
volumes: ["/config:/app"],
image: `${service.name}:\${TAG}`, image: `${service.name}:\${TAG}`,
build: { build: {
context: `./services`, context: `./services`,
@ -416,7 +417,7 @@ gulp.task('watch', function() {
*/ */
gulp.task('docker', async () => { gulp.task('docker', async () => {
try { try {
await execP('docker rm -f dblocal'); await execP('docker rm -fv dblocal');
} catch (e) {} } catch (e) {}
await runSequenceP('docker-run'); await runSequenceP('docker-run');
@ -428,7 +429,7 @@ gulp.task('docker', async () => {
*/ */
gulp.task('docker-build', async () => { gulp.task('docker-build', async () => {
try { try {
await execP('docker rm -f dblocal'); await execP('docker rm -fv dblocal');
} catch (e) {} } catch (e) {}
try { try {
await execP('docker rmi dblocal:latest'); await execP('docker rmi dblocal:latest');