You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.
version: "2"
settings:
conductor:
# The Conductor container does the heavy lifting, and provides a portable
# Python runtime for building your target containers. It should be derived
# from the same distribution as you're building your target containers with.
base: ubuntu:16.04
# roles_path: # Specify a local path containing Ansible roles
#volumes: mydb:/home/otp/db # Provide a list of volumes to mount
# environment: # List or mapping of environment variables
# Set the name of the project. Defaults to basename of the project directory.
# For built services, concatenated with service name to form the built image name.
project_name: node5may
# The deployment_output_path is mounted to the Conductor container, and the
# `run` and `deployment` commands then write generated Ansible playbooks to it.
# deployment_output_path: ./ansible-deployment
# When using the k8s or openshift engines, use the following to authorize with the API.
# Values set here will be passed to the Ansible modules. Any file paths will be mounted
# to the conductor container, allowing the `run` command to access the API.
services:
# Add your containers here, specifying the base image you want to build from.
# To use this example, uncomment it and delete the curly braces after services key.
# You may need to run `docker pull ubuntu:trusty` for this to work.
ocs5may_service:
from: "ubuntu:16.04"
roles:
- base
ports:
- "8080:8080"
- "1812:1812/udp"
- "1813:1813/udp"
- "3868:3868"
expose:
- "1812/udp"
- "1813/udp"
- "3868/tcp"
- "8080/tcp"
volumes:
- mydb:/home/otp/db/
user: root
working_dir: /home/otp
#environment:
#ROOTDIR: /usr/lib/erlang
#RELDIR: /usr/lib/erlang/releases
#OTPHOME: /usr/lib/erlang
entrypoint: ["/bin/sh", "-c", "tail -f /var/log/dmesg"]
#entrypoint: ["/bin/start.sh"]
volumes:
mydb:
docker: {}
registries: {}
# Add optional registries used for deployment. For example:
# google:
# url: https://gcr.io
# namespace: my-cool-project-xxxxxx
GOAL: I just want to start a container to be in macvlan network which i have already configured on my host.
I tried setting up DOCKER_HOST to some suggested values online but didnt work.
I AM RUNNING EVERYTHING LOCALLY
issue: Everything was working fine untill i added these lines in my roles/base/tasks/main.yml file. Now the ansible-container build fails...
name: Add a container to a network, leaving existing containers connected
docker_network:
name: ocs_network
#connected:
- container_a
appends: yes
STEPS TO REPRODUCE
root@nabeel-pc:/home/nabeel/Desktop/node5may# ps -aux | grep docker
root 13841 4.5 1.0 657476 83144 ? Ssl 12:07 0:26 /usr/bin/dockerd -H fd:// -H unix:///var/run/docker.sock -H tcp://localhost:2375
root 13848 0.3 0.3 680600 23840 ? Ssl 12:07 0:02 docker-containerd --config /var/run/docker/containerd/containerd.toml
===========================
Also the contents of my etc/docker/daemon.json file
{
"experimental": true
}
{
"hosts": ["fd://", "unix:///var/run/docker.sock" ,"tcp://localhost:2375"]
}
``
<!--- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- What did you expect to happen when running the steps above? -->
##### ACTUAL RESULTS
<!--- What actually happened? If possible run with debugging (--debug) -->
"msg": "Error connecting: Error while fetching server API version: ('Connection aborted.', error(2, 'No such file or directory'))"
}
<!--- Paste verbatim command output between quotes below -->
The text was updated successfully, but these errors were encountered:
You should try whether the Docker daemon is really started.
For example with
$ sudo systemctl status docker
In my case Docker setup was broken in general (and therefore not related to ansible)
uggg can't believe this was my problem. Ansible seems to bomb out with a completely misleading error... but still i should have ensured docker was running!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ISSUE TYPE
container.yml
OS / ENVIRONMENT
SUMMARY
GOAL: I just want to start a container to be in macvlan network which i have already configured on my host.
I tried setting up DOCKER_HOST to some suggested values online but didnt work.
I AM RUNNING EVERYTHING LOCALLY
issue: Everything was working fine untill i added these lines in my roles/base/tasks/main.yml file. Now the ansible-container build fails...
docker_network:
name: ocs_network
#connected:
- container_a
appends: yesSTEPS TO REPRODUCE
The text was updated successfully, but these errors were encountered: