# Ansible-container build on setting up nginx\_container is getting terminated with module error

**URL:** <https://forum.ansible.com/t/ansible-container-build-on-setting-up-nginx-container-is-getting-terminated-with-module-error/26382>\
**Category:** Ansible Project\
**Created:** [December 26, 2017, 12:58pm UTC](https://forum.ansible.com/t/ansible-container-build-on-setting-up-nginx-container-is-getting-terminated-with-module-error/26382 "2017-12-26T12:58:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ManiGandan\_T](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@ManiGandan\_T](https://forum.ansible.com/u/ManiGandan_T)\
**Post date:** [December 26, 2017, 12:58pm UTC](https://forum.ansible.com/t/ansible-container-build-on-setting-up-nginx-container-is-getting-terminated-with-module-error/26382/1 "2017-12-26T12:58:23Z")

</div>

##### ISSUE TYPE- Bug Report

##### container.yml

```auto
version: '2'
settings:
  conductor:
    base: centos:7
services:
  ansible.nginx-container:
    from: "nginx:base"
    roles:
    - nginx_container
    ports:
    - "80:3000"
    user: root
    command: [nginx,-g,'daemon off']
registries: {}

```

##### OS / ENVIRONMENT

Ansible Container, version 0.9.2  
Linux, [test.test.com](http://test.test.com), 3.10.0-327.13.1.el7.x86\_64, [#1](https://github.com/ansible/ansible-container/pull/1) SMP Mon Feb 29 13:22:02 EST 2016, x86\_64  
2.7.5 (default, May 3 2017, 07:55:04)  
[GCC 4.8.5 20150623 (Red Hat 4.8.5-14)] /usr/bin/python

“ContainersPaused”: 0,  
“Labels”: null,  
“CgroupDriver”: “cgroupfs”,  
“ContainersRunning”: 0,  
“ContainerdCommit”: {  
“Expected”: “03e5862ec0d8d3b3f750e19fca3ee367e13c090e”,  
“ID”: “03e5862ec0d8d3b3f750e19fca3ee367e13c090e”  
},  
“InitBinary”: “docker-init”,  
“NGoroutines”: 24,  
“Swarm”: {  
“Managers”: 0,  
“ControlAvailable”: false,  
“NodeID”: “”,  
“Cluster”: {  
“Spec”: {  
“TaskDefaults”: {},  
“Orchestration”: {},  
“EncryptionConfig”: {  
“AutoLockManagers”: false  
},  
“Raft”: {  
“HeartbeatTick”: 0,  
“ElectionTick”: 0  
},  
“CAConfig”: {},  
“Dispatcher”: {}  
},  
“Version”: {},  
“ID”: “”,  
“CreatedAt”: “0001-01-01T00:00:00Z”,  
“UpdatedAt”: “0001-01-01T00:00:00Z”  
},  
“Nodes”: 0,  
“Error”: “”,  
“RemoteManagers”: null,  
“LocalNodeState”: “inactive”,  
“NodeAddr”: “”  
},  
“LoggingDriver”: “journald”,  
“OSType”: “linux”,  
“HttpProxy”: “”,  
“Runtimes”: {  
“runc”: {  
“path”: “docker-runc”  
}  
},  
“DriverStatus”: [  
[  
“Backing Filesystem”,  
“extfs”  
],  
[  
“Supports d\_type”,  
“true”  
]  
],  
“OperatingSystem”: “Red Hat Enterprise Linux Server 7.2 (Maipo)”,  
“Containers”: 185,  
“HttpsProxy”: “”,  
“BridgeNfIp6tables”: false,  
“MemTotal”: 8203485184,  
“SecurityOptions”: [  
“name=seccomp,profile=default”  
],  
“Driver”: “overlay”,  
“IndexServerAddress”: “[https://index.docker.io/v1/](https://index.docker.io/v1/)”,  
“ClusterStore”: “”,  
“InitCommit”: {  
“Expected”: “949e6fa”,  
“ID”: “949e6fa”  
},  
“Isolation”: “”,  
“SystemStatus”: null,  
“OomKillDisable”: true,  
“ClusterAdvertise”: “”,  
“SystemTime”: “2017-12-12T14:52:38.635530941Z”,  
“Name”: “[dtest.com](http://dtest.com)”,  
“CPUSet”: true,  
“RegistryConfig”: {  
“InsecureRegistryCIDRs”: [  
“127.0.0.0/8”  
],  
“IndexConfigs”: {  
“[docker.io](http://docker.io)”: {  
“Official”: true,  
“Name”: “[docker.io](http://docker.io)”,  
“Secure”: true,  
“Mirrors”: null  
},  
“[nexus.ops.test.com:5443](http://nexus.ops.test.com:5443)”: {  
“Official”: false,  
“Name”: “[nexus.ops.test.com:5443](http://nexus.ops.test.com:5443)”,  
“Secure”: false,  
“Mirrors”:   
},  
“[nexus.ops.test.com:5000](http://nexus.ops.test.com:5000)”: {  
“Official”: false,  
“Name”: “[nexus.ops.test.com:5000](http://nexus.ops.test.com:5000)”,  
“Secure”: false,  
“Mirrors”:   
}  
},  
“Mirrors”:   
},  
“DefaultRuntime”: “runc”,  
“ContainersStopped”: 185,  
“NCPU”: 4,  
“NFd”: 17,  
“Architecture”: “x86\_64”,  
“KernelMemory”: true,  
“CpuCfsQuota”: true,  
“Debug”: false,  
“ID”: “KBBZ:ODFS:K55U:7EUJ:DSRA:XPRS:AMJK:NNCI:V3QK:DWCD:WTYQ:B4ZI”,  
“IPv4Forwarding”: true,  
“KernelVersion”: “3.10.0-327.13.1.el7.x86\_64”,  
“BridgeNfIptables”: false,  
“NoProxy”: “”,  
“LiveRestoreEnabled”: false,  
“ServerVersion”: “1.13.0”,  
“CpuCfsPeriod”: true,  
“ExperimentalBuild”: false,  
“MemoryLimit”: true,  
“SwapLimit”: true,  
“Plugins”: {  
“Volume”: [  
“local”  
],  
“Network”: [  
“bridge”,  
“host”,  
“macvlan”,  
“null”,  
“overlay”  
],  
“Authorization”: null  
},  
“Images”: 151,  
“DockerRootDir”: “/app/docker-data”,  
“NEventsListener”: 0,  
“CPUShares”: true,  
“RuncCommit”: {  
“Expected”: “2f7393a47307a16f8cee44a37b262e8b81021e3e”,  
“ID”: “2f7393a47307a16f8cee44a37b262e8b81021e3e”  
}  
}  
{  
“KernelVersion”: “3.10.0-327.13.1.el7.x86\_64”,  
“Arch”: “amd64”,  
“BuildTime”: “2017-01-17T09:55:28.732707040+00:00”,  
“ApiVersion”: “1.25”,  
“Version”: “1.13.0”,  
“MinAPIVersion”: “1.12”,  
“GitCommit”: “49bf474”,  
“Os”: “linux”,  
“GoVersion”: “go1.7.3”

```auto
##### SUMMARY
My Nginx_Container build is suddenly terminated with /usr/bin/python module error. 

##### STEPS TO REPRODUCE
sudo ansible-container --debug build
sudo ansible-container --debug build --user-local-python

<!--- Paste any example commands between quotes below -->

```
