Unable to install apk and launch the application in Appium docker

I have a docker running on linux machine with appium server on it, real device is connected via USB with all permissions granted.


The problem is when I running tests the apk is not installing, its like skipping the installation, if app is already installed it doesn’t launch with appPackage and appActivity capabilities. Appium logs shows no errors. The test is running perfect locally on my Windows machine with this capabilities:

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, “Android”);
capabilities.setCapability(MobileCapabilityType.APP, new URL(apkLink));

I tried max of capabilities but it doesnt helped, so I dont know where to find solution.