Hi,
I am trying to install ansible on docker on Ubuntu Desktop 18.04LTS
PROBLEMS:
- error when try to docker run
- whether docker hub ansible/ansible already has ssh client/server inside it
If doesn’t then how to install ssh inside container
What steps I miss
tq
STEPS
Docker
apt-get update
apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Verify that you now have the key with the fingerprint9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint.
apt-key fingerprint 0EBFCD88
pub 4096R/0EBFCD88 2017-02-22
Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid Docker Release (CE deb) docker@docker.com
sub 4096R/F273FCD8 2017-02-22
add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) edge”
apt-get update
apt-get install docker-ce
-add your current user to docker group
admin2$ sudo usermod -aG docker $USER
systemctl enable docker && systemctl start docker
Ansible
docker pull ansible/ansible:default
docker run --rm -it 13030821a080
Failed to determine whether /sys is a mount point: Operation not permitted
Failed to determine whether /proc is a mount point: Operation not permitted
Failed to determine whether /dev is a mount point: Operation not permitted
Failed to determine whether /dev/shm is a mount point: Operation not permitted
Failed to determine whether /run is a mount point: Operation not permitted
Failed to determine whether /run/lock is a mount point: Operation not permitted
Failed to determine whether /sys/fs/cgroup is a mount point: Operation not permitted
Failed to determine whether /sys/fs/cgroup/systemd is a mount point: Operation not permitted
[!!!] Failed to mount API filesystems, freezing.
Freezing execution.