Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

204
Visualizações
customized Docker mongodb image gets stuck : can't stop, kill, open

I made NodeJS & mongoDB Docker image, Here is Dockerfile:

FROM ubuntu:14.04
MAINTAINER K. Haejin "haejin.kim419@gmail.com"

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update
RUN apt-get -qq update
RUN apt-get install -y nodejs npm
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/10gen.list
RUN apt-get update && apt-get install -y mongodb-org=2.6.1 mongodb-org-server=2.6.1 mongodb-org-shell=2.6.1 mongodb-org-mongos=2.6.1 mongodb-org-tools=2.6.1

RUN update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
RUN mkdir -p /data/db

VOLUME ["/data"]

ADD . /data
WORKDIR /data

EXPOSE 8000
EXPOSE 27017

CMD ["mongod"]

I built it to "mongo_node" image, and run container by following command :

docker run -it --name mongo_node -v "$(pwd)":/data -p 8000:8000 -p 27017:27017 mongo_node bash

But when I push large file(400MB) into mongoDB by 'mongoimport' command, Container gets stuck. It is still running however, I can not get inside(docker exec -it mongo_node bash), can not stop(docker stop mongo_node) and kill. It can be stopped by restart my desktop(if It happens in server.. server should be reseted.. It is horrible). I think problem is my Dockerfile because I've never seen this problem in standard mongodb image.

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda