Giter VIP home page Giter VIP logo

Comments (10)

yosifkit avatar yosifkit commented on June 20, 2024

I do not get any errors running this. What is your docker version, docker -D info and uname -a?

from official-images.

elderone avatar elderone commented on June 20, 2024
# docker version
Client version: 1.0.0
Client API version: 1.12
Go version (client): go1.2.2
Git commit (client): 63fe64c/1.0.0
Server version: 1.0.0
Server API version: 1.12
Go version (server): go1.2.2
Git commit (server): 63fe64c/1.0.0

# docker -D info
Containers: 15
Images: 362
Storage Driver: devicemapper
 Pool Name: docker-253:1-202217530-pool
 Data file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata file: /var/lib/docker/devicemapper/devicemapper/metadata
 Data Space Used: 17197.2 Mb
 Data Space Total: 102400.0 Mb
 Metadata Space Used: 21.3 Mb
 Metadata Space Total: 2048.0 Mb
Execution Driver: native-0.2
Kernel Version: 3.10.0-123.4.4.el7.x86_64
Debug mode (server): false
Debug mode (client): true
Fds: 62
Goroutines: 82
EventsListeners: 0
Init SHA1: 4d35b599430acebe2c845a4f209febec451d9604
Init Path: /usr/libexec/docker/dockerinit

# uname -a
Linux server.srv 3.10.0-123.4.4.el7.x86_64 #1 SMP Fri Jul 25 05:07:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

# cat /etc/centos-release
CentOS Linux release 7.0.1406 (Core)

docker-io.x86_64                 1.0.0-1.el7                        @epel

from official-images.

cpuguy83 avatar cpuguy83 commented on June 20, 2024

@elderone Please update to 1.1.2, I'm pretty sure this is fixed.

from official-images.

Artimi avatar Artimi commented on June 20, 2024

I have this problem too.

When I try to build image based on this Dockerfile:

FROM ubuntu:12.04

RUN apt-get update
# for install add-apt-repository command
RUN apt-get -y install python-software-properties
RUN add-apt-repository -y ppa:biometrics/bob
RUN apt-get update
RUN apt-get -y install bob

In last step I get this:

groupadd: failure while writing changes to /etc/group
addgroup: `/usr/sbin/groupadd -g 102 utempter' returned error code 10. Exiting.
dpkg: error processing libutempter0 (--configure):
 subprocess installed post-installation script returned error exit status 1

My environment:

# docker version
Client version: 1.2.0
Client API version: 1.14
Go version (client): go1.2.2
Git commit (client): fa7b24f/1.2.0
OS/Arch (client): linux/amd64
Server version: 1.2.0
Server API version: 1.14
Go version (server): go1.2.2
Git commit (server): fa7b24f/1.2.0

#  docker -D info
Containers: 19
Images: 47
Storage Driver: devicemapper
 Pool Name: docker-253:1-135861-pool
 Pool Blocksize: 64 Kb
 Data file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata file: /var/lib/docker/devicemapper/devicemapper/metadata
 Data Space Used: 3090.8 Mb
 Data Space Total: 102400.0 Mb
 Metadata Space Used: 4.8 Mb
 Metadata Space Total: 2048.0 Mb
Execution Driver: native-0.2
Kernel Version: 3.15.10-201.fc20.x86_64
Operating System: Fedora 20 (Heisenbug)
Debug mode (server): false
Debug mode (client): true
Fds: 12
Goroutines: 14
EventsListeners: 0
Init SHA1: 4f84c8386a0072bb60fd1258f41f43e377e0b6c9
Init Path: /usr/libexec/docker/dockerinit

# uname -a 
Linux localhost.localdomain 3.15.10-201.fc20.x86_64 #1 SMP Wed Aug 27 21:10:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

from official-images.

yosifkit avatar yosifkit commented on June 20, 2024

@cpuguy83 any thoughts on why it would be still broken on Docker 1.2.0? Perhaps an issue with devicemapper?

from official-images.

joseblas avatar joseblas commented on June 20, 2024

@cpuguy83
I have the same problem from 1.14.

groupadd: failure while writing changes to /etc/group
addgroup: `/usr/sbin/groupadd -g 102 ssh' returned error code 10. Exiting.
dpkg: error processing openssh-client (--configure):
subprocess installed post-installation script returned error exit status 1

#docker version
Client version: 1.2.0
Client API version: 1.14
Go version (client): go1.2.2
Git commit (client): fa7b24f/1.2.0
OS/Arch (client): linux/amd64
Server version: 1.2.0
Server API version: 1.14
Go version (server): go1.2.2
Git commit (server): fa7b24f/1.2.0

from official-images.

neingeist avatar neingeist commented on June 20, 2024

FYI, It's broken with a Ubuntu 12.04 image, but not with an Ubuntu 14.04 image. Running the FC20 shipped docker-io-1.2.0-2.fc20.x86_64 here.

from official-images.

e0d avatar e0d commented on June 20, 2024

The root cause seems to be an inability to write to /etc/passwd or /etc/group on 12.04

This minimal Docker file fail when run from FC20

FROM ubuntu:12.04.5
MAINTAINER e0d
RUN groupadd foo
EXPOSE 22 3000
ENTRYPOINT ["/bin/bash"]

from official-images.

e0d avatar e0d commented on June 20, 2024

The issue on FC20 is SELinux related, the ham-fisted work around is:

sudo setenforce 0

I'll work out exactly what's going on when I have a free moment.

from official-images.

yosifkit avatar yosifkit commented on June 20, 2024

I am unable to reproduce this and it seems to be related to SELinux. Closing for now.

from official-images.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.