skip to Main Content

Docker Run Command as Sudo?

Inside my dockerfile I have: FROM ubuntu:latest FROM python:latest RUN sudo apt-get update RUN apt-get install nmap But I have a problem where the last line doesn't work because of sudo, how may I fix this?

VIEW QUESTION

run two python scripts with docker compose

My folder structure looked like this: My Dockerfile looked like this: FROM python:3.8-slim-buster WORKDIR /src COPY src/requirements.txt requirements.txt RUN pip install --no-cache-dir -r requirements.txt COPY src/ . CMD [ "python", "main.py"] When I ran these commands: docker build --tag FinTechExplained_Python_Docker…

VIEW QUESTION

Docker merge containers

I have running multiple containers separately which connected to each other using defined network in docker-compose.yml and my application is running perfect, so I want to create only one image for those multiple containers for deploying to my private repository…

VIEW QUESTION
Back To Top
Search