val appPackageName = getPackageName()
val intent = Intent(Intent.ACTION_VIEW).apply {
data = Uri.parse("https://play.google.com/store/apps/details?id=$appPackageName")
setPackage("com.android.vending")
}
startActivity(intent)
Step 1: Get the updated image
$ docker pull bitnami/moodle:latestStep 2: Stop the running container
Stop the currently running container using the command
#這部分有時候會停用失敗,請用docker stop 方式直接停用container
$ docker-compose stop moodleStep 3: Take a snapshot of the application state
Backup your container 要備分(我之前有做了)
Step 4: Remove the currently running container
Remove the currently running container by executing the following command:
docker-compose rm -v moodleStep 5: Run the new image (修改yml裡面moodle版本->到最新)
Update the image tag in docker-compose.yml and re-create your container with the new image
$ docker-compose up -d