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}'
],
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');