Error initializing a docker container after installing transmission-daemon and nordvpn

40 Views Asked by At

1 - Created an image with the Dockerfile below (successfully)

docker build -t meu-container .

2 - Created a container from the created image

docker create -it --name meu-container meu-container /bin/bash

3 - I tried to run the created container but the following error message was displayed:

docker start -ia meu-container
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "C:/Program Files/Git/usr/bin/bash": stat C:/Program Files/Git/usr/bin/bash: no such file or directory: unknown

4 - How can I fix this error? Any sugestions?

DOCKERFILE:

# Use a imagem base Ubuntu:latest
FROM ubuntu:latest

# Atualize e faça upgrade no apt
RUN apt-get update && apt-get upgrade -y

# Instale os pacotes transmission-daemon e wget
RUN apt-get install -y transmission-daemon wget

# Baixe o script de instalação do NordVPN
RUN wget -qO nordvpn-install.sh https://downloads.nordcdn.com/apps/linux/install.sh

# Dê permissão de execução ao script
RUN chmod +x nordvpn-install.sh

# Execute o script de instalação do NordVPN
RUN sh -c 'yes | ./nordvpn-install.sh'

# Exponha a porta 3000
EXPOSE 3000

# Execute o transmission-daemon
CMD ["/bin/sh", "transmission-daemon", "-f"]

I was hoping that the container would initialize successfully and I could use the bash prompt

0

There are 0 best solutions below