Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial startup time is too long #131

Closed
spoyd opened this issue Feb 6, 2019 · 0 comments
Closed

Initial startup time is too long #131

spoyd opened this issue Feb 6, 2019 · 0 comments

Comments

@spoyd
Copy link

spoyd commented Feb 6, 2019

Docker container initial startup time too long.

Expected Behavior

Startup time should be minimal, preferably under 1 second.

Current Behavior

Docker container initial startup time is close to 60 seconds.

Possible Solution

Shorten the time it takes to execute the chown steps in the docker-entrypoint.sh script.

Steps to Reproduce (for bugs)

  1. Launch a contain using the existing image using:
    docker run couchdb:latest
  2. Record the time it takes to print the first lines of output.

Context

I discovered this issue while trying to automate the testing of my CouchDB backups. I was using a script to create a CouchDB container, restore the database backup, execute some queries, and destroy the container. The script was timing out because of the extremely long startup time of the CouchDB container.

Your Environment

  • Version used:
    CouchDB Image: couchdb:2.3.0

  • Docker Info

Containers: 7
 Running: 5
 Paused: 0
 Stopped: 2
Images: 43
Server Version: 18.09.1
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 96ec2177ae841256168fcf76954f7177af9446eb
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.125-linuxkit
Operating System: Docker for Windows
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.934GiB
Name: linuxkit-00155d007b64
ID: 74Q5:SZUE:ROUC:HXQI:6MLC:D45V:ENBH:E7TL:6SWA:FROI:CLBM:NRYL
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 62
 Goroutines: 77
 System Time: 2019-02-06T02:09:46.8639059Z
 EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
  • Browser Name and version:
    Version 71.0.3578.98 (Official Build) (64-bit)

  • Operating System and version (desktop or mobile):
    Windows 10 / 1809

  • Link to your project:
    n/a

@wohali wohali closed this as completed in ce931b0 Apr 30, 2019
wohali added a commit that referenced this issue Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant