We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25bee3e commit 3d46cccCopy full SHA for 3d46ccc
tools/docker.sh
@@ -1,10 +1,18 @@
1
#!/bin/bash
2
3
-alias dc='docker compose'
+#alias dc='docker compose'
4
5
__lazy_install lazydocker
6
__lazy_install docker-compose
7
8
+function dc(){
9
+ if command podman-compose --help 2>&1 >/dev/null; then
10
+ podman-compose $*
11
+ else
12
+ docker compose $*
13
+ fi
14
+}
15
+
16
function docker_build_mounted_run(){
17
local image="test-$RANDOM"
18
docker build -t "$image" .
@@ -63,4 +71,4 @@ function docker_logs() {
63
71
if [[ ${platform} == "linux" ]]; then
64
72
systemctl --user start podman.socket >&2 2> /dev/null
65
73
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock
66
-fi
74
+fi
0 commit comments