Docker image not running properly

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Hello all, I am very new to docker so I am fairly clueless. I am trying to run a discord bot off of my raspberry pi. Here is what I have for my docker file: FROM python:3 WORKDIR ~/docker_storage/discord_bot/ RUN pip install –no-cache-dir -U discord.py COPY bot.py / COPY additionalfunctions.py / COPY userclass.py / COPY courseclass.py / COPY bot_key.txt / CMD [“python”, “./bot.py”] now when I try to run it I use the following command: docker run -ti –name discordserver -v ~/docker_storage/discord_bot/:/main discordbot and get the following error: python: can’t open file ‘./bot.py’: [Errno 2] No such file or directory I could be wrong, but I thought the whole purpose of a docker image was that it was the only thing necessary to run a program. Bot.py is the primary script, taking additional functions from additionalfunctions.py, classes from courseclass.py and userclass.py and an authentication key from bot_key.py. ​ Thanks for any suggestions! submitted by /u/Bentrigger [link] [comments]

X ITM Cloud News

Patricia

Leave a Reply

Next Post

What is the best way to "understand" an existing K8s deployment and pipeline?

Tue Jun 30 , 2020
Spread the love          I need to get a better understanding of someone else’s K8s deployment which is the end result of a Concourse CI/CD pipeline. I have access to the YAML files, but I’m having trouble seeing how they come together into a “big picture”. Any advice? submitted by /u/hare_t0day [link] […]
X- ITM

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware

.

X ITM