Bug 1071605
Summary: | sshd not working in fedora image | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Paolo Antinori <pantinor> |
Component: | docker-io | Assignee: | Lokesh Mandvekar <lsm5> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 20 | CC: | admiller, dcaroest, golang-updates, jkeck, lsm5, mattdm, mgoldman, skottler, vbatts |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-05-15 10:51:07 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Paolo Antinori
2014-03-02 09:16:49 UTC
It's not sshd that's not working -- it's that you're not running systemd. The process you're running in your container is "bash". That means any services normally started by systemd aren't there -- not to mention systemd itself. You *can* run "docker run systemd", but results are unpredictable at best right now. Work on polishing that is a perfectly interesting project for someone, but as far as I know no one is focusing on it. You could also run the container with sshd directly -- that should work. Thanks Matt for the explanation. At that time I had bypassed the problem using Centos images that allow me to use service sshd start that keeps it simpler by my point of view. (In reply to Paolo Antinori from comment #2) > Thanks Matt for the explanation. At that time I had bypassed the problem > using Centos images that allow me to use > > service sshd start > > that keeps it simpler by my point of view. So, that just runs '/etc/init.d/sshd start', which in turn runs /usr/sbin/sshd. There's nothing fundamentally different from just doing that directly (although the script does set up host keys if they don't exist). |