Comments (5)
change -it to -itd
from windows.
The example command contains
-rm
which means it removes the container if you exit the command. So to keep it running, just run the same command without-rm
.But this question is more about how Docker works, it has nothing to do with this container.
Understanding. I have added the - d parameter as mentioned by the senior below, and the problem has been resolved. Nevertheless, I am very grateful for taking the time to respond to my request for help
from windows.
The example command contains -rm
which means it removes the container if you exit the command. So to keep it running, just run the same command without -rm
.
But this question is more about how Docker works, it has nothing to do with this container.
from windows.
change -it to -itd
I didn't know much about this command before, thank you very much for telling me about it
from windows.
@3038843920
I want to know how to connect the windows container with SSH, and use command line to do some operation in Windows system.
Could you share the way for me? Need install some software like openSSH on Windows?
ssh worked on win11 docker now.
- open powershell as admin
- type in
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
, the output like below:
PS C:\Windows\system32> Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*' Name : OpenSSH.Client~~~~0.0.1.0 State : Installed Name : OpenSSH.Server~~~~0.0.1.0 State : NotPresent
- type in
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
install ssh server - type in
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
, the output like below:
PS C:\Windows\system32> Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*' Name : OpenSSH.Client~~~~0.0.1.0 State : Installed Name : OpenSSH.Server~~~~0.0.1.0 State : Installed
- type in
net start sshd
, ssh worked now.
from windows.
Related Issues (20)
- Unable to connect through RDP: Connection reset by peer HOT 2
- Access Shared folders from Unraid
- [Question]: How Can I config ipv6 address on win7 or win11?
- ❯ ERROR: Timeout while waiting for QEMU to boot the machine![Bug]:
- [Bug]: ERROR: Timeout while waiting for QEMU to boot the machine
- [Feature]: New OS
- [Question]: WSL sharing Folder HOT 2
- Stuck on a boot circle (Win10) HOT 2
- [Question]: Can i passthrough my IGPU intel ?
- Container restarts every hour HOT 1
- [Feature]: Pterodactyl Egg
- Language of the input keyboard is not respected HOT 2
- [Question]: Using the Microsoft windows image HOT 3
- Can't get it to boot to my locally dowloaded iso, keeps trying to download from cloud HOT 2
- [Feature]: May I ask if it supports GPU
- Certificate authorities not updating properly
- Could not open UnixIO socket: Permission denied HOT 7
- fresh windows install HOT 7
- [Feature]: Can't play sound? Could be support sound?
- [Question]: is there a way to reduce the data.img after it grows?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows.