use --force option to not error

This commit is contained in:
Girish Ramakrishnan
2024-02-28 19:59:38 +01:00
parent 3316dd1f42
commit 35f2c0ec7d
+1 -1
View File
@@ -78,7 +78,7 @@ async function pruneInfraImages() {
async function createDockerNetwork() {
debug('createDockerNetwork: recreating docker network');
await safe(shell.exec('createDockerNetwork', 'docker network rm cloudron', {})); // ignore error
await shell.exec('createDockerNetwork', 'docker network rm -f cloudron', {});
// the --ipv6 option will work even in ipv6 is disabled. fd00 is IPv6 ULA
await shell.exec('createDockerNetwork', `docker network create --subnet=${constants.DOCKER_IPv4_SUBNET} --ip-range=${constants.DOCKER_IPv4_RANGE} --gateway ${constants.DOCKER_IPv4_GATEWAY} --ipv6 --subnet=fd00:c107:d509::/64 cloudron`, {});
}