Why can't I use Docker CMD multiple times to run multiple services? - Stack Overflow (https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (Stack Overflow) (/opensearch.xml) (https://stackoverflow.com/questions/23692470/why-cant-i-use-docker-cmd-multiple-times-to-run-multiple-services) (https://cdn.sstatic.net/Shared/stacks.css?v=bd2aba62c5a4) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=cc49ce762956) (Feed for question 'Why can't I use Docker CMD multiple times to run multiple services?') (/feeds/question/23692470) (https://cdn.sstatic.net/Shared/Channels/channels.css?v=5981bb1a5bd7) (https://accounts.google.com/gsi/style) (site logo) Join Stack Overflow By clicking “Sign up”, you agree to our (/legal/terms-of-service/public) terms of service and acknowledge you have read our (/legal/privacy-policy) privacy policy . (8715abeb62cf6a9fe93de824cea527599cbf4e957f73c9d6615a4213f6b2728c) (1) (2.0) Sign up with Google Sign up with GitHub OR (8715abeb62cf6a9fe93de824cea527599cbf4e957f73c9d6615a4213f6b2728c) (1) () () () () () () Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (/users/login) Log in (8715abeb62cf6a9fe93de824cea527599cbf4e957f73c9d6615a4213f6b2728c) () Skip to main content (https://stackoverflow.com) Stack Overflow (https://stackoverflow.co/) About Products (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav-bar&utm_content=overflowai) OverflowAI (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams) Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising) Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-ai) OverflowAI GenAI features for Teams (https://stackoverflow.co/api-solutions/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api) OverflowAPI Train & fine-tune LLMs (https://stackoverflow.co/labs/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=labs) Labs The future of collective knowledge sharing (https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) About the company (https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog) Visit the blog (Search…) () Loading… (https://stackoverflow.com) current community (https://stackoverflow.com) (Stack Overflow) Stack Overflow (https://stackoverflow.com/help) help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) chat (https://meta.stackoverflow.com) (Meta Stack Overflow) Meta Stack Overflow your communities (https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f23692470%2fwhy-cant-i-use-docker-cmd-multiple-times-to-run-multiple-services%2f23693804) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f23692470%2fwhy-cant-i-use-docker-cmd-multiple-times-to-run-multiple-services%2f23693804) log in to customize your list. (https://stackexchange.com/sites) more stack exchange communities (https://stackoverflow.blog) company blog (Click to show search) (https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f23692470%2fwhy-cant-i-use-docker-cmd-multiple-times-to-run-multiple-services%2f23693804) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f23692470%2fwhy-cant-i-use-docker-cmd-multiple-times-to-run-multiple-services%2f23693804) Sign up Ask questions and share your thoughts on the future of Stack Overflow. Join our first live community AMA this Wednesday, February 26th, at 3 PM ET. (https://meta.stackexchange.com/questions/406399/join-us-for-our-first-community-wide-ama-ask-me-anything-with-stack-overflow-s?utm_medium=ppc&utm_source=stackoverflow-community&utm_campaign=community-ama&utm_content=announcement-banner2) Learn more (dismiss) Let's set up your homepage Select a few topics you're interested in: python javascript c# reactjs java android html flutter c++ node.js typescript css r php angular next.js spring-boot machine-learning sql excel ios azure docker Or search from our full list: (Search) javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json python-3.x .net ruby-on-rails sql-server swift django angular objective-c excel pandas angularjs regex typescript ruby linux ajax iphone vba xml laravel spring asp.net-mvc database wordpress string flutter postgresql mongodb wpf windows amazon-web-services xcode bash git oracle-database spring-boot dataframe azure firebase list multithreading docker vb.net react-native eclipse algorithm powershell macos visual-studio numpy image forms scala function vue.js performance twitter-bootstrap selenium winforms kotlin loops express dart hibernate sqlite matlab python-2.7 shell rest apache entity-framework android-studio csv api maven linq qt dictionary unit-testing facebook asp.net-core tensorflow apache-spark file swing class unity-game-engine sorting date authentication go symfony opencv t-sql matplotlib .htaccess google-chrome for-loop datetime codeigniter http perl validation sockets google-maps object uitableview xaml oop if-statement visual-studio-code cordova ubuntu web-services email android-layout github elasticsearch spring-mvc kubernetes selenium-webdriver ms-access user-interface parsing ggplot2 pointers machine-learning google-sheets c++11 security flask google-apps-script ruby-on-rails-3 nginx templates variables exception sql-server-2008 gradle debugging tkinter listview delphi jpa asynchronous pdf web-scraping haskell jsp ssl amazon-s3 google-cloud-platform jenkins testing xamarin wcf npm batch-file generics ionic-framework network-programming unix recursion google-app-engine mongoose visual-studio-2010 .net-core android-fragments assembly animation math next.js session svg hadoop intellij-idea curl django-models join laravel-5 winapi rust url heroku http-redirect tomcat google-cloud-firestore inheritance webpack keras image-processing asp.net-mvc-4 gcc web logging dom swiftui matrix pyspark actionscript-3 button post optimization firebase-realtime-database jquery-ui cocoa iis xpath d3.js firefox javafx internet-explorer xslt caching select asp.net-mvc-3 opengl events asp.net-web-api plot dplyr magento encryption search stored-procedures amazon-ec2 ruby-on-rails-4 memory audio canvas multidimensional-array jsf random vector cookies redux facebook-graph-api input flash xamarin.forms indexing arraylist ipad cocoa-touch data-structures video apache-kafka model-view-controller serialization jdbc woocommerce routes razor azure-devops awk servlets mod-rewrite beautifulsoup docker-compose iframe filter excel-formula aws-lambda design-patterns text django-rest-framework visual-c++ cakephp mobile android-intent react-hooks struct methods groovy mvvm ssh lambda checkbox google-chrome-extension ecmascript-6 time grails installation sharepoint cmake shiny spring-security jakarta-ee android-recyclerview plsql core-data types meteor android-activity sed bootstrap-4 websocket activerecord graph replace scikit-learn file-upload group-by vim junit deep-learning boost import sass memory-management error-handling async-await eloquent dynamic soap silverlight dependency-injection charts layout apache-spark-sql deployment browser gridview svn while-loop google-bigquery vuejs2 ffmpeg dll highcharts view foreach plugins makefile c#-4.0 redis reporting-services jupyter-notebook server merge https unicode reflection google-maps-api-3 twitter oauth-2.0 extjs pytorch axios terminal pip split mysqli cmd django-views encoding automation netbeans database-design collections hash build data-binding ember.js tcp sqlalchemy pdo apache-flex concurrency command-line entity-framework-core spring-data-jpa printing java-8 react-redux jestjs service html-table neo4j ansible lua parameters material-ui module visual-studio-2012 enums promise flexbox outlook webview firebase-authentication web-applications uwp jquery-mobile utf-8 datatable python-requests parallel-processing drop-down-menu colors scroll hive tfs scipy count syntax ms-word twitter-bootstrap-3 ssis google-analytics three.js fonts powerbi constructor graphql rxjs file-io paypal discord cassandra socket.io graphics compiler-errors gwt react-router nlp solr backbone.js url-rewriting datatables memory-leaks oauth datagridview terraform drupal oracle11g zend-framework neural-network knockout.js triggers django-forms interface google-api angular-material casting jmeter linked-list proxy path timer django-templates arduino orm directory parse-platform visual-studio-2015 windows-phone-7 cron push-notification conditional-statements primefaces functional-programming pagination model jar xamarin.android hyperlink uiview visual-studio-2013 gitlab vbscript google-cloud-functions azure-active-directory jwt download swift3 sql-server-2005 process configuration rspec properties pygame combobox callback windows-phone-8 safari linux-kernel permissions scrapy raspberry-pi scripting emacs clojure scope io x86 compilation mongodb-query responsive-design nhibernate angularjs-directive request expo bluetooth 3d dns azure-functions binding reference discord.js architecture playframework pyqt version-control doctrine-orm package pycharm get sql-server-2012 rubygems f# autocomplete datepicker openssl kendo-ui tree jackson controller yii nested grep xamarin.ios static dockerfile statistics transactions null datagrid active-directory uiviewcontroller phpmyadmin webforms discord.py notifications computer-vision sas duplicates mocking youtube nullpointerexception yaml menu sum bitmap electron asp.net-mvc-5 visual-studio-2008 time-series yii2 jsf-2 css-selectors android-listview stl blazor floating-point cryptography ant stream hashmap character-encoding msbuild sdk asp.net-core-mvc google-drive-api selenium-chromedriver jboss joomla navigation cors devise anaconda frontend background camera pyqt5 multiprocessing binary cuda linq-to-sql iterator mariadb onclick ios7 plotly rabbitmq android-asynctask android-jetpack-compose microsoft-graph-api tabs insert laravel-4 amazon-dynamodb uicollectionview environment-variables linker console xsd coldfusion upload continuous-integration ftp textview opengl-es operating-system mockito vuejs3 localization xml-parsing macros formatting json.net kivy type-conversion data.table timestamp calendar integer segmentation-fault android-ndk drag-and-drop prolog char crash jasmine automated-tests dependencies geometry android-gradle-plugin itext firebase-cloud-messaging header sprite-kit mfc fortran attributes nosql nuxt.js format nestjs azure-pipelines odoo jquery-plugins db2 leaflet jenkins-pipeline event-handling postman flutter-layout annotations julia keyboard textbox arm visual-studio-2017 gulp libgdx stripe-payments xampp synchronization crystal-reports azure-web-app-service timezone dom-events android-emulator swagger uikit wso2 sequelize.js aggregation-framework namespaces uiscrollview jvm chart.js google-sheets-formula com subprocess geolocation centos webdriver html5-canvas widget dialog garbage-collection numbers snowflake-cloud-data-platform concatenation sql-update qml windows-10 set mapreduce tuples smtp ionic2 java-stream rotation modal-dialog android-edittext spring-data http-headers nuget doctrine radio-button grid sonarqube lucene xmlhttprequest internationalization listbox components initialization switch-statement google-play apache-camel boolean serial-port ldap ios5 youtube-api return gdb latex pivot eclipse-plugin frameworks tags containers dataset github-actions asp-classic foreign-keys subquery label copy uinavigationcontroller google-cloud-storage c++17 delegates struts2 migration base64 protractor queue sql-server-2008-r2 find uibutton embedded arguments composer-php append jaxb zip stack cucumber autolayout ide entity-framework-6 popup iteration windows-7 airflow r-markdown ssl-certificate vb6 gmail hover jqgrid tailwind-css g++ udp Next You’ll be prompted to create an account to view your personalized homepage. (/) Home (/questions) Questions (/tags) Tags (/users) Users (https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) Companies Labs (/jobs?source=so-left-nav) Jobs (/beta/discussions) Discussions Collectives Communities for your favorite technologies. (/collectives-all) Explore all Collectives Teams () Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Try Teams for free (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Explore Teams Teams Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact) Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. (/collectives) Learn more about Collectives Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. (https://stackoverflow.co/teams/) Learn more about Teams Get early access and see previews of new features. (https://stackoverflow.co/labs/) Learn more about Labs (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (/questions/23692470/why-cant-i-use-docker-cmd-multiple-times-to-run-multiple-services) Why can't I use Docker CMD multiple times to run multiple services? (/questions/ask) Ask Question (2014-05-16 04:06:20Z) Asked 10 years, 9 months ago Modified (?lastactivity) (2024-10-07 21:02:51Z) 4 months ago (Viewed 225,725 times) Viewed 226k times This question shows research effort; it is useful and clear (70:3:31e,16:33cf0019368379a6,10:1740473049,16:7ab87c582cfac0b5,8:23692470,f7bad72e49fe5b065ba7f19446cbef3339de81d4fb18ac946d283749402816a3) 129 (This question does not show any research effort; it is unclear or not useful) (70:3:31e,16:076e14d9a55f352b,10:1740473049,16:f2a37fe64233f92a,8:23692470,e8c278476367a4b71d77b4623915c4b15cfe002f3e5c1e8eef594539aeab4986) Save this question. (/posts/23692470/timeline) Show activity on this post. I have built a base image from Dockerfile named centos+ssh. In centos+ssh's Dockerfile, I use CMD to run ssh service. Then I want to build a image run other service named rabbitmq,the Dockerfile: FROM centos+ssh EXPOSE 22 EXPOSE 4149 CMD /opt/mq/sbin/rabbitmq-server start To start rabbitmq container,run: docker run -d -p 222:22 -p 4149:4149 rabbitmq but ssh service doesn't work, it sense rabbitmq's Dockerfile CMD override centos's CMD. How does CMD work inside docker image? If I want to run multiple service, how to? Using supervisor? (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/docker-cmd) (show questions tagged 'docker-cmd') docker-cmd (/q/23692470) (Short permalink to this question) Share Share a link to this question Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/23692470/edit) () Improve this question Follow (70:3:31e,16:92c13720fbbd75ab,10:1740473049,16:7f479b1f0a7e8c30,8:23692470,1b437d04ec147423cb9ed124eda8b0ece5d6fde732dd4b077c2f9e35889d2fff) Follow this question to receive notifications (/posts/23692470/revisions) (show all edits to this post) edited (2024-04-17 17:22:47Z) Apr 17, 2024 at 17:22 (/users/580724/anil) (Anil's user avatar) (/users/580724/anil) Anil (reputation score) 2,554 (6 gold badges) 6 6 gold badges (33 silver badges) 33 33 silver badges (45 bronze badges) 45 45 bronze badges asked (2014-05-16 04:06:20Z) May 16, 2014 at 4:06 (/users/2923142/edwardsbean) (edwardsbean's user avatar) (/users/2923142/edwardsbean) edwardsbean edwardsbean (reputation score) 3,779 (5 gold badges) 5 5 gold badges (23 silver badges) 23 23 silver badges (25 bronze badges) 25 25 bronze badges (Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.) Add a comment | (Expand to show all comments on this post) 6 Answers 6 Sorted by: (/questions/23692470/why-cant-i-use-docker-cmd-multiple-times-to-run-multiple-services?answertab=scoredesc#tab-top) Reset to default (scoredesc) Highest score (default) (trending) Trending (recent votes count more) (modifieddesc) Date modified (newest first) (createdasc) Date created (oldest first) This answer is useful (70:3:31e,16:ad9d04b1739c611a,10:1740473049,16:bef9fc4e4c6a12d9,8:23693804,cebc3777d52166af8dd3714444f1b859bf30dda74fcc49d64b071561bcfd65b5) 162 (This answer is not useful) (70:3:31e,16:73ee3cb438c69553,10:1740473049,16:f023b53f1268269b,8:23693804,4e3567d21ccd1ab8a7fd4700732664b18c85054d17f3e619f43cb0d82b1472a3) Save this answer. (Loading when this answer was accepted…) (/posts/23693804/timeline) Show activity on this post. You are right, the second Dockerfile will overwrite the CMD command of the first one. Docker will always run a single command, not more. So at the end of your Dockerfile, you can specify one command to run. Not more. But you can execute both commands in one line: FROM centos+ssh EXPOSE 22 EXPOSE 4149 CMD service sshd start && /opt/mq/sbin/rabbitmq-server start What you could also do to make your Dockerfile a little bit cleaner, you could put your CMD commands to an extra file: FROM centos+ssh EXPOSE 22 EXPOSE 4149 CMD sh /home/centos/all_your_commands.sh And a file like this: service sshd start & /opt/mq/sbin/rabbitmq-server start (/a/23693804) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/23693804/edit) () Improve this answer Follow (70:3:31e,16:eb03f195ab2bdd1e,10:1740473049,16:ac46db832e28e147,8:23693804,8a8dfbcc01c7a1f16ae36e8197c3f656d50f4c726da2b96b527fe4eb8756a355) Follow this answer to receive notifications answered (2014-05-16 06:21:17Z) May 16, 2014 at 6:21 (/users/847064/thomas-uhrig) (Thomas Uhrig's user avatar) (/users/847064/thomas-uhrig) Thomas Uhrig Thomas Uhrig (reputation score 31,603) 31.6k (13 gold badges) 13 13 gold badges (63 silver badges) 63 63 silver badges (80 bronze badges) 80 80 bronze badges 7 (number of 'useful comment' votes received) 1 thanks, i think use supervisor is better.but why docker only run one CMD?what happen inside? – (/users/2923142/edwardsbean) (3,779 reputation) edwardsbean Commented (2014-05-17 02:38:20Z, License: CC BY-SA 3.0) May 17, 2014 at 2:38 (number of 'useful comment' votes received) 3 I do not know what is happening inside. But I think it is just designed like that. When you have an image and run a command in it (e.g. with CMD), it starts a container. The container runs as long as the command runs. And as soon as the command finishes, the container also stops. So each container represents one single (running) command. – (/users/847064/thomas-uhrig) (31,603 reputation) Thomas Uhrig Commented (2014-05-17 09:48:49Z, License: CC BY-SA 3.0) May 17, 2014 at 9:48 i think maybe it because of lcx or something's limit – (/users/2923142/edwardsbean) (3,779 reputation) edwardsbean Commented (2014-05-21 15:54:11Z, License: CC BY-SA 3.0) May 21, 2014 at 15:54 (number of 'useful comment' votes received) 2 @Tyguy7 .. (http://seethrumag.com/wp-content/uploads/2016/09/BUT-WHY-meme-45000-300x157.jpg) because ................ ? – (/users/390722/michael-m) (8,763 reputation) Michael M Commented (2019-02-27 23:00:17Z, License: CC BY-SA 4.0) Feb 27, 2019 at 23:00 (this comment was edited 1 time) (number of 'useful comment' votes received) 6 && technique will work only with non-interactive services (that can start in background) else only the first one will run. – (/users/5511315/noraj) (4,642 reputation) noraj Commented (2019-11-11 17:03:08Z, License: CC BY-SA 4.0) Nov 11, 2019 at 17:03 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) | (Expand to show all comments on this post) Show 2 more comments This answer is useful (70:3:31e,16:92fee0f2195be4a4,10:1740473049,16:596f542d80700a94,8:23721303,13a42d98cee760fc0e1f9e88954c13291fc6e858c78cb229f35687e1560f6385) 73 (This answer is not useful) (70:3:31e,16:d742f640744109cf,10:1740473049,16:5d9a7bf366f6a6da,8:23721303,d1fb99575617f6621b43de53560a78884a850cf81fe755b7d402a52b3884c27f) Save this answer. (Loading when this answer was accepted…) (/posts/23721303/timeline) Show activity on this post. Even though CMD is written down in the Dockerfile, it really is runtime information. Just like EXPOSE, but contrary to e.g. RUN and ADD. By this, I mean that you can override it later, in an extending Dockerfile, or simple in your run command, which is what you are experiencing. At all times, there can be only one CMD. If you want to run multiple services, I indeed would use supervisor. You can make a supervisor configuration file for each service, ADD these in a directory, and run the supervisor with supervisord -c /etc/supervisor to point to a supervisor configuration file which loads all your services and looks like [supervisord] nodaemon=true [include] files = /etc/supervisor/conf.d/*.conf If you would like more details, I wrote a blog on this subject here: (http://blog.trifork.com/2014/03/11/using-supervisor-with-docker-to-manage-processes-supporting-image-inheritance/) http://blog.trifork.com/2014/03/11/using-supervisor-with-docker-to-manage-processes-supporting-image-inheritance/ (/a/23721303) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/23721303/edit) () Improve this answer Follow (70:3:31e,16:8dbd006a03766363,10:1740473049,16:74028236a39c8f13,8:23721303,221142a001d7bd15f0ea8e24ea34cbb5fa7b31af66322782db2b2be356c483fa) Follow this answer to receive notifications answered (2014-05-18 11:17:39Z) May 18, 2014 at 11:17 (/users/1449361/qkrijger) (qkrijger's user avatar) (/users/1449361/qkrijger) qkrijger qkrijger (reputation score 27,246) 27.2k (6 gold badges) 6 6 gold badges (38 silver badges) 38 38 silver badges (37 bronze badges) 37 37 bronze badges 2 Thanks,supervisor is a good idea,but i'm wonder how does CMD work inside docker image – (/users/2923142/edwardsbean) (3,779 reputation) edwardsbean Commented (2014-05-18 12:51:30Z, License: CC BY-SA 3.0) May 18, 2014 at 12:51 (number of 'useful comment' votes received) 2 You asked two question, 2. on running multiple services. On wondering how CMD works, please elaborate on what you want to know specifically. I already mentioned it being runtime information and being overwritten by any new CMD. – (/users/1449361/qkrijger) (27,246 reputation) qkrijger Commented (2014-05-20 08:36:12Z, License: CC BY-SA 3.0) May 20, 2014 at 8:36 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:d437d16f48cbf645,10:1740473049,16:599fad86002b4061,8:34954856,da0b1239acdbffd39a34b27492716920876f92c96b334d92a3e7799ade4de8ea) 30 (This answer is not useful) (70:3:31e,16:3f53f202db42162b,10:1740473049,16:13090c763bc75685,8:34954856,0d8fc81aff0ac0bc0afd03b392b60bce6b927f2c6999d6e98a0d784bfada9c16) Save this answer. (Loading when this answer was accepted…) (/posts/34954856/timeline) Show activity on this post. While I respect the answer from qkrijger explaining how you can work around this issue I think there is a lot more we can learn about what's going on here ... To actually answer your question of "why " ... I think it would for helpful for you to understand how the docker stop command works and that all processes should be shutdown cleanly to prevent problems when you try to restart them (file corruption etc). Problem: What if docker did start SSH from it's command and started RabbitMQ from your Docker file? "(https://www.ctl.io/developers/blog/post/gracefully-stopping-docker-containers/) The docker stop command attempts to stop a running container first by sending a SIGTERM signal to the root process (PID 1) in the container. " Which process is docker tracking as PID 1 that will get the SIGTERM? Will it be SSH or Rabbit?? (https://github.com/phusion/baseimage-docker#overview) "According to the Unix process model, the init process -- PID 1 -- inherits all orphaned child processes and must reap them. Most Docker containers do not have an init process that does this correctly, and as a result their containers become filled with zombie processes over time." Answer: Docker simply takes that last CMD as the one that will get launched as the root process with PID 1 and get the SIGTERM from docker stop . Suggested solution: You should use (or create) a base image specifically made for running more than one service, such as (https://hub.docker.com/r/phusion/baseimage/) phusion/baseimage It should be important to note that (https://github.com/krallin/tini) tini exists exactly for this reason, and as of Docker 1.13 and up, tini is officially part of Docker, which tells us that running more than one process in Docker IS VALID .. so even if someone (https://github.com/Tecnativa/doodba/issues/135) claims to be more skilled regarding Docker, and insists that you absurd for thinking of doing this, know that you are not. There are perfectly valid situations for doing so. Good to know: (https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/) https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/ (http://www.techbar.me/stopping-docker-containers-gracefully/) http://www.techbar.me/stopping-docker-containers-gracefully/ (https://www.ctl.io/developers/blog/post/gracefully-stopping-docker-containers/) https://www.ctl.io/developers/blog/post/gracefully-stopping-docker-containers/ (https://github.com/phusion/baseimage-docker#docker_single_process) https://github.com/phusion/baseimage-docker#docker_single_process (/a/34954856) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/34954856/edit) () Improve this answer Follow (70:3:31e,16:635bfe2eab6a00b8,10:1740473049,16:ab46dd9de732f462,8:34954856,90d9f1306c670ca9f7641bd006f9162a0a4e0dcf7e60217c6343eb31a5659043) Follow this answer to receive notifications (/posts/34954856/revisions) (show all edits to this post) edited (2018-08-28 19:21:07Z) Aug 28, 2018 at 19:21 answered (2016-01-22 19:54:17Z) Jan 22, 2016 at 19:54 (/users/390722/michael-m) (Michael M's user avatar) (/users/390722/michael-m) Michael M Michael M (reputation score) 8,763 (2 gold badges) 2 2 gold badges (37 silver badges) 37 37 silver badges (54 bronze badges) 54 54 bronze badges 0 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:b8196037866e9f13,10:1740473049,16:4a3b05ba9057309c,8:58805795,99bb611590c1b25fafa7514f6523522e17a13e97f197b3272a6c73e265852466) 6 (This answer is not useful) (70:3:31e,16:4ca3baee4b0c4555,10:1740473049,16:1b91e549d00a4d17,8:58805795,e6dbd9734f1f99fc204c7c7354aac2ad047bbabccd7fe8a98c32540c5ebc3b97) Save this answer. (Loading when this answer was accepted…) (/posts/58805795/timeline) Show activity on this post. The official docker answer to (https://docs.docker.com/config/containers/multi-service_container/) Run multiple services in a container . It explains how you can do it with an init system (systemd, sysvinit, upstart) , a script (CMD ./my_wrapper_script.sh ) or a supervisor like supervisord . The && workaround can work only for services that starts in background (daemons) or that will execute quickly without interaction and release the prompt. Doing this with an interactive service (that keeps the prompt) and only the first service will start. (/a/58805795) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/58805795/edit) () Improve this answer Follow (70:3:31e,16:438dc4dacb989ff1,10:1740473049,16:c37cded80a7e6aeb,8:58805795,476572084a95e40ea7c55b892ffe354f460ae9ae8f090f99d2d6f4bcba383125) Follow this answer to receive notifications (/posts/58805795/revisions) (show all edits to this post) edited (2019-11-11 17:29:20Z) Nov 11, 2019 at 17:29 answered (2019-11-11 17:10:51Z) Nov 11, 2019 at 17:10 (/users/5511315/noraj) (noraj's user avatar) (/users/5511315/noraj) noraj noraj (reputation score) 4,642 (1 gold badge) 1 1 gold badge (36 silver badges) 36 36 silver badges (41 bronze badges) 41 41 bronze badges 1 "The following is a naive example" – (/users/339144/klaas-van-schelven) (2,528 reputation) Klaas van Schelven Commented (2024-08-27 10:46:58Z, License: CC BY-SA 4.0) Aug 27, 2024 at 10:46 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:412539ae2ae356ca,10:1740473049,16:1fe6001fc52440d2,8:78928235,5a3b69a870fb2d3350c7ca6606b44bf2c9ce18823c205d0da2abbb01c64c324c) 1 (This answer is not useful) (70:3:31e,16:058c710eb7aaa92d,10:1740473049,16:ba20945aacd167e0,8:78928235,7cfc845a11eef8939346f8bd6969bc744cf773632230b5989af5c51aa9034b9d) Save this answer. (Loading when this answer was accepted…) (/posts/78928235/timeline) Show activity on this post. Building on Michael's explanation, I’d like to suggest an alternative approach using a tool I wrote called (https://github.com/bugsink/monofy/) monofy . It's a Python-based solution designed to manage multiple processes within a single Docker container, ensuring they start, run, and stop together. How It Works Single Parent Process: monofy runs as the parent, starting all your services as child processes. This allows for proper signal handling, forwarding signals like SIGTERM to all child processes for a clean shutdown. Unified Logging: It consolidates stdout and stderr from all child processes, simplifying monitoring. Connected Fate: If one process exits, monofy terminates all other processes, ensuring they stop together. Example Implementation Consider you have two services, service1 and service2 , tightly coupled within your application. Here’s how you could modify your Dockerfile: FROM python:3.12 RUN pip install monofy CMD ["monofy", "service1", "|||", "service2"] This setup runs both service1 and service2 in a single container with proper process management, logging, and shutdown handling—without extra tools like supervisor or phusion/baseimage . (/a/78928235) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/78928235/edit) () Improve this answer Follow (70:3:31e,16:8dcad30fba041584,10:1740473049,16:c5dc17a583a8f04d,8:78928235,886cb4550ad8de2961d7280505a3f90226fbe3f6e9a76aea3838f2f863c285b1) Follow this answer to receive notifications (/posts/78928235/revisions) (show all edits to this post) edited (2024-10-07 21:02:51Z) Oct 7, 2024 at 21:02 answered (2024-08-29 14:05:13Z) Aug 29, 2024 at 14:05 (/users/339144/klaas-van-schelven) (Klaas van Schelven's user avatar) (/users/339144/klaas-van-schelven) Klaas van Schelven Klaas van Schelven (reputation score) 2,528 (1 gold badge) 1 1 gold badge (25 silver badges) 25 25 silver badges (40 bronze badges) 40 40 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:074dea74420bb9d8,10:1740473049,16:247a47b6142d94e0,8:59643413,c988725550dd32959f8921d5c1e457abb49f2b1e2a28f4f56330a1f10fd41832) 0 (This answer is not useful) (70:3:31e,16:fb9c28edfbe4decc,10:1740473049,16:c14090b83c4520a1,8:59643413,245b4f356303a7d9f604803c0ba818da83fb568008a907f2319fe6f6632380bd) Save this answer. (Loading when this answer was accepted…) (/posts/59643413/timeline) Show activity on this post. To address why CMD is designed to run only one service per container, let's just realize what would happen if the secondary servers run in the same container are not trivial / auxiliary but "major" (e.g. storage bundled with the frontend app). For starters, it would break down several important containerization features such as horizontal (auto-)scaling and rescheduling between nodes, both of which assume there is only one application (source of CPU load) per container. Then there is the issue of vulnerabilities - more servers exposed in a container means more frequent patching of CVEs... So let's admit that it is a 'nudge' from Docker (and Kubernetes/Openshift) designers towards good practices and we should not reinvent workarounds (SSH is not necessary - we have docker exec / kubectl exec / oc rsh designed to replace it). More info (https://devops.stackexchange.com/questions/447/why-it-is-recommended-to-run-only-one-process-in-a-container) https://devops.stackexchange.com/questions/447/why-it-is-recommended-to-run-only-one-process-in-a-container (/a/59643413) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/59643413/edit) () Improve this answer Follow (70:3:31e,16:ce3f4255471a7753,10:1740473049,16:7f37c281f63c44e4,8:59643413,99738907a3f4f057c0fb9a00570a9a540918cd3e92e40f000f93be9d239d665d) Follow this answer to receive notifications (/posts/59643413/revisions) (show all edits to this post) edited (2020-01-08 10:19:07Z) Jan 8, 2020 at 10:19 answered (2020-01-08 09:59:56Z) Jan 8, 2020 at 9:59 (/users/9962007/mirekphd) (mirekphd's user avatar) (/users/9962007/mirekphd) mirekphd mirekphd (reputation score) 6,821 (3 gold badges) 3 3 gold badges (55 silver badges) 55 55 silver badges (79 bronze badges) 79 79 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) (23692470) (false) () Your Answer (False) Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. (/help/gen-ai-policy) Learn more (true) Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question . Provide details and share your research! But avoid … Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our (/help/how-to-answer) tips on writing great answers . Draft saved Draft discarded (8715abeb62cf6a9fe93de824cea527599cbf4e957f73c9d6615a4213f6b2728c) Sign up or (/users/login?ssrc=question_page&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f23692470%2fwhy-cant-i-use-docker-cmd-multiple-times-to-run-multiple-services%23new-answer) log in Sign up using Google Sign up using Email and Password (false) (false) Submit Post as a guest Name () () Email Required, but never shown () () Post as a guest Name () () Email Required, but never shown () () Post Your Answer Discard By clicking “Post Your Answer”, you agree to our (https://stackoverflow.com/legal/terms-of-service/public) terms of service and acknowledge you have read our (https://stackoverflow.com/legal/privacy-policy) privacy policy .(1) Not the answer you're looking for? Browse other questions tagged (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/docker-cmd) (show questions tagged 'docker-cmd') docker-cmd or (/questions/ask) ask your own question . The Overflow Blog (https://stackoverflow.blog/2025/02/21/one-quality-every-engineering-manager-should-have-empathy/?cb=1) One quality every engineering manager should have? Empathy. (https://stackoverflow.blog/2025/02/24/writing-tests-with-ai-but-not-llms/?cb=1) Writing tests with AI, but not LLMs Featured on Meta (Meta Stack Exchange) (https://meta.stackexchange.com/questions/406399/join-us-for-our-first-community-wide-ama-ask-me-anything-with-stack-overflow-s?cb=1) (Join us for our first community-wide AMA (Ask Me Anything) with Stack Overflow’s CEO (and a few others) on February 26, 2025) Join us for our first community-wide AMA (Ask Me Anything) with Stack... (Meta Stack Exchange) (https://meta.stackexchange.com/questions/406575/bigbird-and-frog-have-joined-us-as-community-managers?cb=1) bigbird and Frog have joined us as Community Managers (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/433034/stacks-editor-development-and-testing?cb=1) Stacks Editor development and testing (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/432989/is-it-better-to-redirect-users-who-attempt-to-perform-actions-they-cant-yet-tak?cb=1) (Is it better to redirect users who attempt to perform actions they can't yet take?) Is it better to redirect users who attempt to perform actions they can't yet... (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned?cb=1) Policy: Generative AI (e.g., ChatGPT) is banned Linked (https://stackoverflow.com/q/49630960?lq=1) (Question score (upvotes - downvotes)) 10 (https://stackoverflow.com/questions/49630960/dockerfile-running-multiple-cmd-starting-nginx-and-php?noredirect=1&lq=1) DOCKERFILE: Running multiple CMD. (Starting NGINX and PHP) (https://stackoverflow.com/q/57946108?lq=1) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/57946108/how-can-i-run-luigid-and-luigi-task-within-docker?noredirect=1&lq=1) How can I run luigid and luigi task within docker? (https://stackoverflow.com/q/64911830?lq=1) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/64911830/docker-run-only-displays-last-cmd?noredirect=1&lq=1) docker run only displays last CMD? (https://stackoverflow.com/q/78682389?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/78682389/dockerhub-pimcore-image?noredirect=1&lq=1) Dockerhub Pimcore image (https://stackoverflow.com/q/71320703?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/71320703/not-able-to-run-cmd-in-dockerfile-docker?noredirect=1&lq=1) Not able to run CMD in dockerfile - DOCKER (https://stackoverflow.com/q/71066948?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/71066948/why-after-creating-a-table-in-local-dynamodb-instance-which-is-running-on-docker?noredirect=1&lq=1) Why after creating a table in local DynamoDB instance which is running on Docker, the table is still missing? (https://stackoverflow.com/q/71786923?lq=1) (Question score (upvotes - downvotes)) 25 (https://stackoverflow.com/questions/71786923/docker-compose-how-to-run-bash-commands-after-container-has-started-without-ov?noredirect=1&lq=1) docker-compose, how to run bash commands after container has started, without overriding the CMD or ENTRYPOINT in the image docker is pulling in? (https://stackoverflow.com/q/42375082?lq=1) (Question score (upvotes - downvotes)) 6 (https://stackoverflow.com/questions/42375082/how-to-add-redis-to-a-docker-container?noredirect=1&lq=1) How to add Redis to a Docker Container? (https://stackoverflow.com/q/62705170?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/62705170/using-sequelize-cli-with-docker-compose?noredirect=1&lq=1) Using sequelize-cli with docker-compose (https://stackoverflow.com/q/73003903?lq=1) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/73003903/run-2-script-at-same-time-on-docker?noredirect=1&lq=1) Run 2 Script at same time on Docker (https://stackoverflow.com/questions/linked/23692470?lq=1) See more linked questions Related (https://stackoverflow.com/q/38072389?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/38072389/starting-multiple-service-in-dockefile?rq=3) Starting Multiple service in Dockefile (https://stackoverflow.com/q/41806907?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/41806907/docker-cannot-execute-multiple-docker-run-commands-from-same-sh-file?rq=3) Docker - Cannot execute multiple docker run commands from same .sh file (https://stackoverflow.com/q/46684437?rq=3) (Question score (upvotes - downvotes)) 16 (https://stackoverflow.com/questions/46684437/can-i-run-more-than-one-services-with-docker-compose-in-one-command?rq=3) Can I run more than one services with docker-compose in one command? (https://stackoverflow.com/q/47552621?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/47552621/dockerfile-cmd-run-multiple-command?rq=3) dockerfile cmd run multiple command (https://stackoverflow.com/q/47759213?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/47759213/how-to-run-2-services-during-docker-run?rq=3) How to run 2 services during 'docker run'? (https://stackoverflow.com/q/49470044?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/49470044/not-able-to-start-2-tasks-using-dockerfile-cmd?rq=3) Not able to start 2 tasks using Dockerfile CMD (https://stackoverflow.com/q/50437600?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/50437600/how-can-i-do-multi-cmd-in-docker?rq=3) How can I do multi CMD in docker? (https://stackoverflow.com/q/50481031?rq=3) (Question score (upvotes - downvotes)) 9 (https://stackoverflow.com/questions/50481031/defining-multiple-services-on-dockerfile-with-single-cmd?rq=3) defining multiple services on Dockerfile with single CMD (https://stackoverflow.com/q/55767496?rq=3) (Question score (upvotes - downvotes)) 11 (https://stackoverflow.com/questions/55767496/docker-compose-run-multiple-commands-for-a-service?rq=3) docker-compose run multiple commands for a service (https://stackoverflow.com/q/63407592?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/63407592/cannot-run-several-cmds-in-dockerfile-last-one-gets-ignored?rq=3) Cannot run several CMDs in Dockerfile, last one gets ignored (https://stackexchange.com/questions?tab=hot) Hot Network Questions (Code Golf Stack Exchange) (https://codegolf.stackexchange.com/questions/278355/tips-for-golfing-in-fortran) Tips for golfing in Fortran (Unix & Linux Stack Exchange) (https://unix.stackexchange.com/questions/791566/cant-find-executable-file-that-is-obviously-present) Can't find executable file that is obviously present (Academia Stack Exchange) (https://academia.stackexchange.com/questions/216940/my-thesis-supervisor-published-a-paper-from-my-ma-thesis-with-herself-as-first-a) My thesis supervisor published a paper from my MA thesis with herself as first author without my consent (Space Exploration Stack Exchange) (https://space.stackexchange.com/questions/67945/could-india-possibly-deflect-the-asteroid-2024-yr4) Could India possibly deflect the asteroid 2024 YR4? (Retrocomputing Stack Exchange) (https://retrocomputing.stackexchange.com/questions/31315/what-was-the-most-complete-encoding-for-english-before-unicode) What was the most complete encoding for English before Unicode? (Skeptics Stack Exchange) (https://skeptics.stackexchange.com/questions/57716/did-the-national-institutes-of-health-spend-over-300-000-to-study-whether-quail) Did the National Institutes of Health spend over $300,000 to study whether quails got more frisky after being fed cocaine? (Bicycles Stack Exchange) (https://bicycles.stackexchange.com/questions/96269/can-someone-help-id-this-frame) Can someone help ID this frame! (Quantum Computing Stack Exchange) (https://quantumcomputing.stackexchange.com/questions/41278/calculate-expectation-value-using-qiskit-simulator-and-estimator) Calculate expectation value using Qiskit Simulator and Estimator (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/264887/could-tiny-people-find-honest-work) Could tiny people find honest work? (Puzzling Stack Exchange) (https://puzzling.stackexchange.com/questions/130692/a-geometrical-puzzle-about-a-grazing-goat) A geometrical puzzle about a grazing goat (Personal Finance & Money Stack Exchange) (https://money.stackexchange.com/questions/165389/could-i-miss-out-on-a-spike-if-i-sold-covered-call-options) Could I miss out on a spike if I sold covered call options? (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/264845/dangerous-but-efficient-future-energy-source) Dangerous but efficient future energy source (Politics Stack Exchange) (https://politics.stackexchange.com/questions/90720/why-does-india-have-such-a-low-gold-reserve-when-compared-to-the-size-of-its-eco) Why does India have such a low gold reserve when compared to the size of its economy? (Home Improvement Stack Exchange) (https://diy.stackexchange.com/questions/315054/invisible-fasteners-for-wooden-stair-railing) Invisible fasteners for wooden stair railing (Retrocomputing Stack Exchange) (https://retrocomputing.stackexchange.com/questions/31326/how-can-i-use-gsx-in-turbo-pascal-for-cp-m-80) How can I use GSX in Turbo Pascal for CP/M-80? (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/737819/let-qed-symbol-be-right-after-the-text-of-the-proof) Let qed symbol be right after the text of the proof (Home Improvement Stack Exchange) (https://diy.stackexchange.com/questions/315098/adding-dedicated-gfci-circuit-no-room-for-neutral-ground-on-bars) Adding dedicated GFCI circuit, no room for neutral/ ground on bars (Puzzling Stack Exchange) (https://puzzling.stackexchange.com/questions/130684/add-2-matches-to-make-a-valid-expression-24202-2420) Add 2 matches to make a valid expression - 242+02->2420 (Academia Stack Exchange) (https://academia.stackexchange.com/questions/216974/same-work-lower-status-how-to-handle-a-demotion) Same work, lower status—how to handle a demotion? (Code Review Stack Exchange) (https://codereview.stackexchange.com/questions/295450/github-label-management-with-graphql-requests-and-loguru) GitHub Label Management with GraphQL, Requests, and Loguru (Chinese Language Stack Exchange) (https://chinese.stackexchange.com/questions/59862/help-in-understanding-li-bais-%e5%a4%9c%e4%b8%8b%e5%be%81%e8%99%8f%e4%ba%ad) Help in understanding Li Bai's 《夜下征虏亭》 (CiviCRM Stack Exchange) (https://civicrm.stackexchange.com/questions/49223/why-is-cividesk-no-longer-listed-on-your-website) Why is cividesk no longer listed on your website (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/295103/what-was-the-first-sff-movie-to-influence-later-books-in-the-same-franchise) What was the first SFF movie to influence later books in the same franchise? (Space Exploration Stack Exchange) (https://space.stackexchange.com/questions/67953/would-someone-in-orbit-require-eye-protection-to-look-at-venus-what-about-the-u) Would someone in orbit require eye protection to look at Venus? What about the upper atmosphere? (/feeds/question/23692470) (Feed of this question and its answers) Question feed Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. (https://stackoverflow.com/feeds/question/23692470) () (https://stackoverflow.com) (https://stackoverflow.com) Stack Overflow (/questions) Questions (/help) Help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) Chat (https://stackoverflow.co/) Products (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) Teams (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) Advertising (https://stackoverflow.co/advertising/employer-branding/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=talent) Talent (https://stackoverflow.co/) Company (https://stackoverflow.co/) About (https://stackoverflow.co/company/press/) Press (https://stackoverflow.co/company/work-here/) Work Here (https://stackoverflow.com/legal) Legal (https://stackoverflow.com/legal/privacy-policy) Privacy Policy (https://stackoverflow.com/legal/terms-of-service/public) Terms of Service (/contact) Contact Us Cookie Settings (https://stackoverflow.com/legal/cookie-policy) Cookie Policy (https://stackexchange.com) Stack Exchange Network (https://stackexchange.com/sites#technology) Technology (https://stackexchange.com/sites#culturerecreation) Culture & recreation (https://stackexchange.com/sites#lifearts) Life & arts (https://stackexchange.com/sites#science) Science (https://stackexchange.com/sites#professional) Professional (https://stackexchange.com/sites#business) Business (https://api.stackexchange.com/) API (https://data.stackexchange.com/) Data (https://stackoverflow.blog?blb=1) Blog (https://www.facebook.com/officialstackoverflow/) Facebook (https://twitter.com/stackoverflow) Twitter (https://linkedin.com/company/stack-overflow) LinkedIn (https://www.instagram.com/thestackoverflow) Instagram Site design / logo © 2025 Stack Exchange Inc; user contributions licensed under (https://stackoverflow.com/help/licensing) CC BY-SA . rev 2025.2.24.23038