diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 21af75bcccb1e41cd99c29feb3c31de760b60434..aa442c0103d899bb339a7990fd8e87329c1d42fe 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -68,7 +68,7 @@ jobs:
         shell: powershell
 
   docker:
-    runs-on: ubuntu-18.04
+    runs-on: ubuntu-20.04
     steps:
       - uses: actions/checkout@v2
       - run: git submodule update --init --recursive --force
diff --git a/Dockerfile b/Dockerfile
index 4297dec68a88ad866fd45524a77245f58ccff3b9..db4122f2343c8cdb4ee5931dd472313a611e1c51 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,7 +7,7 @@ WORKDIR /app
 ADD . .
 
 # expect that host run `git submodule update --init`
-RUN make erigon rpcdaemon integration sentry hack
+RUN make erigon rpcdaemon integration sentry hack db-tools
 
 FROM docker.io/library/alpine:3.14
 
diff --git a/Makefile b/Makefile
index f49d1930f5dab71f9310c870e92e9a669e2ce693..246e4b3467a83adb317f11ffa6312f109b3788a7 100644
--- a/Makefile
+++ b/Makefile
@@ -110,9 +110,10 @@ tracker:
 	@echo "Done building."
 	@echo "Run \"$(GOBIN)/tracker\" to run snapshots tracker."
 
-db-tools: libmdbx
+db-tools:
 	@echo "Building db-tools"
-	git submodule update --init --recursive
+	rm -rf libmdbx # hub.docker.com setup incorrect gitpath for git modules. Just remove it and re-init submodule.
+	git submodule update --init --recursive --force
 	cd libmdbx && MDBX_BUILD_TIMESTAMP=unknown make tools
 	cp libmdbx/mdbx_chk $(GOBIN)
 	cp libmdbx/mdbx_copy $(GOBIN)