Hello,
I can not install or start nignx on Docker in Manjaro. I got used to Ubuntu when I installed Docker and nignx. I have Docker and nignx installed.
-
sudo docker images
:REPOSITORY TAG IMAGE ID CREATED SIZE ubuntu 18.04 16508e5c265d 12 days ago 84.1MB ubuntu latest 16508e5c265d 12 days ago 84.1MB hello-world latest 2cb0d9787c4d 7 weeks ago 1.85kB
-
sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 2980636e7970 ubuntu:18.04 "/bin/bash" About an hour ago Up 10 seconds suspicious_chandrasekhar 9953fcc6cd88 ubuntu "/bin/bash" 2 hours ago Up 9 seconds 0.0.0.0:8080->80/tcp kind_lamport 588b4f2659b3 ubuntu:18.04 "/bin/bash" 2 hours ago Up 9 seconds nostalgic_noether
Expected behavior:
docker run -i -t -p 8081:80 ubuntu/nignx /bin/bash
docker ps > resultado_id
var=$(cat resultado_id | cut -c1-12 | tail -n +2)
docker exec $var /etc/init.d/nginx start
Actual behavior:
$ docker run -i -t -p 8081:80 ubuntu/nignx /bin/bash
Unable to find image 'ubuntu/nignx:latest' locally
docker: Error response from daemon: pull access denied for ubuntu/nignx, repository does not exist or may require 'docker login'.
See 'docker run --help'.
$ sudo docker exec $var /etc/init.d/nginx start
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"9953fcc6cd88\": executable file not found in $PATH": unknown
Please, add the new tags: docker
and nignx
.