Please make sure that the host port do not conflict with any other service, otherwise the docker will not run correctly. In this example, I have used the host port 4321 to forward it to the vsftp port 21 and other ports 4559-4564 to the respective port of the host. Status: Downloaded newer image for panubo/vsftpd:latest I have then used a VSFTPD image from the docker.io and ran the image using the below command. This message shows that your installation appears to be working correctly. Once the docker is installed, I have checked it with running “hellow-world” image. I have then followed the docker official (third party to AWS ) document to install the docker-CE on the instance. To understand this in detail, I have launched a T2.medium instance with Ubuntu 16.04, same as the instance i-079b23966ac03e89f specification. However, the image should listen on the FTP port 21. In this example with the -p 3001:21 you are exposing your port 21 of the container to your port 3001 of the Server, so you can enter with filezilla with the ip of your server for host, and 3001 as port. So, you can expose the FTP port also, something like this.ĭocker run -name containername -p 3000:80 -p 3001:21 -d dockerimagename You can expose several ports when you run the container. I’m a little bit reluctant to try this until I feel more comfortable with docker (see my related post at How to access the docker files remotely for Amazon AWS ubuntu instance ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |