#I've never seen this error message. Was
1 messages · Page 1 of 1 (latest)
Trying to add docker support using github.com/shykes/x/docker but realize it needs update for 0.15.x to not use last WithExec().
https://github.com/shykes/x/blob/main/docker/main.go#L53-L62
To make PR, I need to fork whole x repo, which makes me want it to be its own repo a bit...
was working on getting docker going in docs recorder...working, but surprised
cc @granite zephyr
maybe because the recorder module does all its tasks twice, so the container from the first round is still running?
try it without the --name
or add a docker stop my-mariadb at the end
since it has --rm already that should remove it and clear the ground for the next run
dagger call exec --cmd "docker run --rm --detach -p 3306:3306 --env MARIADB_ROOT_PASSWORD=secret mariadb:10.11.2" \
exec --cmd "docker ps | grep mariadb" \
gif -o cast3.gif
ah, port already taken too
ah ok, so then i guess you have to explicitly stop it
or have the mariadb service already running, in this case the screen recording will start with the docker ps step, which is also fine
if I run this twice locally...no name, no ports
docker run --rm --detach --env MARIADB_ROOT_PASSWORD=secret mariadb:10.11.2
I end up with two containers
But if I run the same with recorder, I only get one...
so I don't undertand the "runs twice thing"
I saw this in the PR All commands are run twice: a first time to warm up the dagger cache; a second time in the recording.