LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 01-18-2024, 06:58 AM   #1
zzzhhh
LQ Newbie
 
Registered: Dec 2023
Posts: 9

Rep: Reputation: 0
Do you know how to connect the desktop of this Docker container as a Singularity container through Remote Desktop?


The original Docker container is here: https://quay.io/repository/cosmosclo...gnome?tab=info

We can download this Docker container as a Singularity container using this command: `singularity pull docker://quay.io/cosmoscloud/ubuntu-gnome:rdp`.

If I shell into the container without sudo, I don't know how to start the xrdp service because I don't have sudo permission. So, I shell into the container with sudo and change the port to 3390 in file `/etc/xrdp/xrdp.ini` because 3389 is already occupied. Then I run `sudo systemctl restart xrdp`, and I receive the following output:
Quote:
Running in chroot, ignoring request: restart
If I run `systemctl enable xrdp`, I'll receive the following output:
Quote:
Synchronizing state of xrdp.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable xrdp
I don't know whether these messages indicate that the Remote Desktop service is started successfully, but I cannot connect it. Can you help me by showing how to connect through the Remote Desktop? PS, this container also installed TigerVNC, but I can't connect either.
 
Old 01-18-2024, 07:39 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,925

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
I don't really understand how do you "shell into the container*with sudo". What does it mean?
If you are already root you do not need to use sudo before systemctl (or any other command).
 
Old 01-18-2024, 03:23 PM   #3
zzzhhh
LQ Newbie
 
Registered: Dec 2023
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
I don't really understand how do you "shell into the container*with sudo". What does it mean?
If you are already root you do not need to use sudo before systemctl (or any other command).
Let's not worry about the technical details of sudo thing. Let's assume your boss asked you to connect the GUI desktop of this container using singularity through RDP or VNC. What will you do?
 
Old 01-19-2024, 12:07 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
This sounds like an “XY problem.” Please tell us exactly what your boss wants you to do, not how you propose to do it.

“Containers,” actually, are “an illusion.” You are actually operating as a non-privileged (I hope!) process. Therefore, you cannot execute commands which affect “the environment,” even though you might believe the illusion and therefore expect to do so.

By “illusion,” I’m being very specific: the “containerized” process doesn’t realize that he is, in fact, “an ordinary, non-privileged process,” running on some host somewhere, whose actual topology he has no concept of. (And, if “the illusion” is complete – as it is – he doesn’t care.)

The illusion necessarily falters when you attempt to do something, “within the container [illusion …],” which might actually affect the environment.

Last edited by sundialsvcs; 01-19-2024 at 12:13 PM.
 
Old 01-19-2024, 04:27 PM   #5
zzzhhh
LQ Newbie
 
Registered: Dec 2023
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sundialsvcs View Post
This sounds like an “XY problem.” Please tell us exactly what your boss wants you to do, not how you propose to do it.

“Containers,” actually, are “an illusion.” You are actually operating as a non-privileged (I hope!) process. Therefore, you cannot execute commands which affect “the environment,” even though you might believe the illusion and therefore expect to do so.

By “illusion,” I’m being very specific: the “containerized” process doesn’t realize that he is, in fact, “an ordinary, non-privileged process,” running on some host somewhere, whose actual topology he has no concept of. (And, if “the illusion” is complete – as it is – he doesn’t care.)

The illusion necessarily falters when you attempt to do something, “within the container [illusion …],” which might actually affect the environment.
I have no idea what you mean by “XY problem.” But maybe you should've labelled a previous reply as "XY answer".

I believe I have said everything very clearly in my question. If anyone has difficulty understanding English, please simply leave my question instead of making deviated reply.

From your answer, it is obvious that you do not know what a container and in particular what a Singularity container is and how to work with it. I have no interest in wasting time explaining those basic concepts to you. Please leave my question to others who are technically competent to answer my question. Thanks.

再加两句,我是来问问题的,不是来跟你们这些饭桶吵架的。吵架对我真的没什么意思,如果你们不想帮我回答问题,无所谓,你们尽管走,我不乞求你们的帮助。你们这些人,本事不大,脾气不小,说实话我根本也没指望你们 能帮到我什么东西,尤其是到了Guru级别,就像丐帮的九袋长老一样,大多数的本事是怎么整人,真正的武艺倒是稀疏平常。说这么多,就这样吧。

Last edited by zzzhhh; 01-19-2024 at 04:59 PM.
 
Old 01-20-2024, 02:44 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,925

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
this is the direct translation of that last part (by google):
Quote:
Let me add a few words, I'm here to ask questions, not to argue with you idiots. Quarreling really doesn't mean anything to me. If you don't want to help me answer the question, it doesn't matter. You can just go. I won't beg for your help. You guys are not very capable and have a bad temper. To be honest, I don’t expect you to be able to help me with anything at all, especially when you reach the Guru level, just like the Nine-Pocket Elder of the Beggar Clan, how can most of your abilities be improved? People, real martial arts are rare and ordinary. So much for that.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Docker: How to change and add addons in firefox in a docker container Basher52 Linux - Software 1 11-12-2022 12:55 PM
LXer: Difference between docker.io, docker-cd, and Docker Desktop LXer Syndicated Linux News 0 08-15-2022 05:39 PM
LXer: How to Store Docker Container Data In Docker Volumes LXer Syndicated Linux News 0 03-08-2022 12:45 AM
[SOLVED] Singularity error: Failed creating home directory in container PedroRaposo Linux - Containers 5 03-28-2019 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 08:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration