Where does the bug appear (feature/product)?
Somewhere else…
Describe the Bug
I am trying to use cursor cloud agents, and I have a custom Dockerfile as I need to run docker in the agent, but now my desktop is broken, I can’t connect to it, the chat can as it can open browser windows, etc. But not when it tries to click the chrome icon using the deck:
# any ubuntu or debian based image should work
FROM ubuntu:24.04
ENV DISPLAY=:1
# Configure docker apt repo
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
&& rm -rf /var/lib/apt/lists/* \
&& install -m 0755 -d /etc/apt/keyrings \
&& . /etc/os-release \
&& curl -fsSL https://download.docker.com/linux/${ID}/gpg -o /etc/apt/keyrings/docker.asc \
&& chmod a+r /etc/apt/keyrings/docker.asc \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/${ID} ${VERSION_CODENAME} stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
# Install development tools and system libraries
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
docker-ce \
docker-compose-plugin \
git \
git-lfs \
less \
libcairo2-dev \
libgif-dev \
libjpeg-dev \
libpango1.0-dev \
libpng-dev \
librsvg2-dev \
pkg-config \
poppler-utils \
python3 \
python3-pip \
ripgrep \
sudo \
tmux \
unzip \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*
# Give ubuntu user docker and sudo access
RUN usermod -aG docker ubuntu \
&& echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
# Install uv system-wide
RUN curl --retry 3 --retry-delay 5 -LsSf https://astral.sh/uv/install.sh \
| env UV_INSTALL_DIR=/usr/local/bin sh
# Switch to ubuntu user for nvm/node/pnpm install
ENV NVM_DIR=/home/ubuntu/.nvm
ENV NODE_VERSION=20
USER ubuntu
WORKDIR /home/ubuntu
ENV PNPM_HOME=/home/ubuntu/.local/share/pnpm
ENV PATH=$PNPM_HOME:$PATH
RUN mkdir -p "$NVM_DIR" && \
curl --retry 3 --retry-delay 5 -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash && \
. "$NVM_DIR/nvm.sh" && \
nvm install "$NODE_VERSION" && \
nvm alias default "$NODE_VERSION" && \
nvm use default && \
curl --retry 3 --retry-delay 5 -fsSL https://get.pnpm.io/install.sh | env SHELL=/bin/bash sh -
RUN { \
echo 'export NVM_DIR="$HOME/.nvm"'; \
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"'; \
echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"'; \
echo 'export PNPM_HOME="$HOME/.local/share/pnpm"'; \
echo 'export PATH="$PNPM_HOME:$PATH"'; \
} >> /home/ubuntu/.bashrc && \
{ \
echo 'export NVM_DIR="$HOME/.nvm"'; \
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"'; \
echo 'export PNPM_HOME="$HOME/.local/share/pnpm"'; \
echo 'export PATH="$PNPM_HOME:$PATH"'; \
} >> /home/ubuntu/.profile
USER root
RUN ln -sf "$NVM_DIR/versions/node/$(. "$NVM_DIR/nvm.sh" && nvm version default)/bin/node" /usr/local/bin/node && \
ln -sf "$NVM_DIR/versions/node/$(. "$NVM_DIR/nvm.sh" && nvm version default)/bin/npm" /usr/local/bin/npm && \
ln -sf "$NVM_DIR/versions/node/$(. "$NVM_DIR/nvm.sh" && nvm version default)/bin/npx" /usr/local/bin/npx && \
ln -sf "$PNPM_HOME/pnpm" /usr/local/bin/pnpm && \
ln -sf "$PNPM_HOME/pnpx" /usr/local/bin/pnpx
USER ubuntu
WORKDIR /home/ubuntu
CMD ["/bin/bash"]
Steps to Reproduce
Create a repo with my dockerfile and try to connect to the desktop
Expected Behavior
I should be able to connect to the desktop
Screenshots / Screen Recordings
Operating System
Windows 10/11
Version Information
Not using any specific version
Does this stop you from using Cursor
Yes - Cursor is unusable
