diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1bef39bc2a2e83798b903dc905a713acfc823e46..9ff83b8e64f3813cad4dc38487db46c774e5ee85 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -89,8 +89,6 @@ docker-bench-security:
         - docker logout $REGISTRY
         - source /etc/profile.d/ci-variables
         - sed -i -e "s/$MODIFIED_IMAGE_FULL/$REGISTRY\/ci-builds\/$CI_COMMIT_SHA:latest/g" $MODIFIED_IMAGE/docker-compose.yml
-        # remove links to external networks to be able to start the container locally
-        - sed -i -e '/networks/,+3d' $MODIFIED_IMAGE/docker-compose.yml
         # if secrets.example files exist, remove the .example extension to be able to start the container
         - if [[ -d $MODIFIED_IMAGE/secrets ]]; then for i in $MODIFIED_IMAGE/secrets/*.example ; do cp $i $(echo $i| cut -d '.' -f1,2); done; fi;
         # let docker-compose create the required volumes and networks
diff --git a/pica-etherpad/docker-compose.yml b/pica-etherpad/docker-compose.yml
index b824e94ae28356f8bcc19e039aaf68efd40af6f3..3f91b74a42956598b9e344193e75c657c5ed51b5 100755
--- a/pica-etherpad/docker-compose.yml
+++ b/pica-etherpad/docker-compose.yml
@@ -51,5 +51,4 @@ services:
           retries: 10
         restart: always
         networks:
-          - docker_default
-                                                                                    
+          - docker_default
\ No newline at end of file