Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
#Open bash shell in the container | ||
|
||
#docker command. You can use "sudo docker" if you need so | ||
DOCKER="docker" | ||
#Image name | ||
IMAGE="djonasdev/synology-docker-radicale-server" | ||
|
||
$DOCKER exec -it $($DOCKER ps -a -q --filter ancestor=$IMAGE --format="{{.ID}}") /bin/sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
#Stop and remove the docker container | ||
|
||
#docker command. You can use "sudo docker" if you need so | ||
DOCKER="docker" | ||
#Image name | ||
IMAGE="djonasdev/synology-docker-radicale-server" | ||
|
||
#Stop the old instance if already running | ||
$DOCKER rm $($DOCKER stop $($DOCKER ps -a -q --filter ancestor=$IMAGE --format="{{.ID}}")) |