-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerRun.sh
executable file
·30 lines (22 loc) · 953 Bytes
/
dockerRun.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
APP_NAME="public-md-to-anki-server"
sudo docker rm $APP_NAME -f || echo "failed to remove existing ssh server"
id=$(sudo docker run -dit --restart='always' \
--name $APP_NAME \
-p 17394:9376 \
$APP_NAME)
echo "ID = $id"
sudo docker logs -f "$id"
# --mount type=bind,source=/home/morphs/DOCKER_IMAGES/PowerPointInteractiveGamesGenerator/config.json,target=/home/config.json \
# sudo docker rm -f "spotify-dbus-controller"
# sudo docker run -it --privileged='true' --restart='always' \
# --name 'spotify-dbus-controller' \
# --network host \
# --mount type=bind,source=/run/user/1000/bus,target=/run/user/1000/bus \
# spotify-dbus-controller
#sudo docker logs -f $ID
# --volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
# --volume /run/user/1000/bus:/run/user/1000/bus \
# --env DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS" \
#--volume /var/run/dbus:/var/run/dbus \
#--volume /run/dbus/system_bus_socket:/run/dbus/system_bus_socket \