Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distrobox cannot start container using Docker when using a shared folder on 1.7.2.1 (works on 1.6.0.1) #1424

Closed
Jubei-VA opened this issue May 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Jubei-VA
Copy link

Jubei-VA commented May 29, 2024

This is a fresh install of Linux Mint 21.3, using distrobox 1.7.2.1

Using the command:
distrobox-create --name ubuntu1804docker --image ubuntu:18.04 --volume /tools/Xilinx/:/tools/Xilinx:rw
It will hang on "Starting container..."

This works fine with podman backend. It also works fine with the docker backend if no folder is specified.
I tried using docker.io from apt and also docker-ce from the official repo, but no dice.

EDIT: This works fine with distrobox 1.6.0.1

Here is the log file with distrobox 1.7.2.1:

➜  ~ distrobox enter ubuntu1804docker --verbose
+ [ -z ubuntu1804docker ]
+ [ ! -t 0 ]
+ [ ! -t 1 ]
+ command -v podman
+ command -v podman-launcher
+ command -v docker
+ container_manager=docker
+ command -v docker
+ [ 1 -ne 0 ]
+ container_manager=docker --log-level debug
+ [ 0 -ne 0 ]
+ container_home=/home/jubei
+ container_path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ unshare_groups=0
+ container_status=unknown
+ docker --log-level debug inspect --type container --format container_status={{.State.Status}};
	unshare_groups={{ index .Config.Labels "distrobox.unshare_groups" }};
	{{range .Config.Env}}{{if slice . 0 5 | eq "HOME="}}container_home={{slice . 5 | printf "%q"}};{{end}}{{end}}
	{{range .Config.Env}}{{if slice . 0 5 | eq "PATH="}}container_path={{slice . 5 | printf "%q"}}{{end}}{{end}} ubuntu1804docker
+ eval container_status=created;
	unshare_groups=0;
	container_home="/home/jubei";
	container_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+ container_status=created
+ unshare_groups=0
+ container_home=/home/jubei
+ container_path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ [ 0 -ne 0 ]
+ [ created = unknown ]
+ [ created != running ]
+ date -u +%FT%T
+ log_timestamp=2024-05-29T20:36:43
+ docker --log-level debug start ubuntu1804docker
+ docker --log-level debug inspect --type container --format {{.State.Status}} ubuntu1804docker
+ [ running != running ]
+ printf %-40s\t Starting container...
Starting container...                   	+ mkdir -p /home/jubei/.cache/distrobox
+ rm -f /home/jubei/.cache/distrobox/.ubuntu1804docker.fifo
+ mkfifo /home/jubei/.cache/distrobox/.ubuntu1804docker.fifo
+ true
+ docker --log-level debug inspect --type container --format {{.State.Status}} ubuntu1804docker
+ [ running != running ]
+ logs_pid=132771
+ + IFS= read -r line
@Jubei-VA Jubei-VA added the bug Something isn't working label May 29, 2024
@Jubei-VA Jubei-VA changed the title Distrobox cannot start container using Docker when using a shared folder Distrobox cannot start container using Docker when using a shared folder on 1.7.2.1 (works on 1.6.0.1) May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant