Skip to content

How can I run it inside Docker rootless? #6387

Closed Answered by srfsh
srfsh asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks a bunch for mentioning strace. It is strage I didn't think of that. I have updated my Dockerfile and it seems to function well now. I hope somebody could put this in use as well (make sure you mount /tmp/.X11-unix and run xhost +local:docker on your host machine):

FROM docker.io/clux/muslrust:nightly
RUN rustup component add rust-analyzer rustfmt
RUN apt-get update \
	&& apt-get install -y libx11-dev libxcursor-dev libx11-xcb-dev libxi-dev libxkbcommon-x11-dev \
	&& rm -rf /var/lib/apt/lists/*
RUN RUSTFLAGS="-C target-feature=-crt-static -C link-arg=-lm" \
	CARGO_HOME=/tmp/cargo cargo install slint-lsp \
		&& mv /tmp/cargo/bin/slint-lsp /root/.cargo/bin \

One thing to note here is…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@srfsh
Comment options

Comment options

You must be logged in to vote
2 replies
@srfsh
Comment options

@tronical
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by srfsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants